returnUrl: joinUrl()

in src/server/routes/delete.ts [82:104]


							returnUrl: joinUrl(profileUrl, req.path),
						},
					}),
				});
				return res.type('html').send(html);
			}

			// check if the user has a password set
			if (
				!user.credentials.password ||
				/**
				 * Cypress Test
				 *
				 * This code checks if we're running in Cypress to
				 * mock the user's password
				 */
				(runningInCypress && cypressMockStateCookie === 'noPassword')
			) {
				// if not, ask them to set a password
				const html = renderer('/delete-set-password', {
					pageTitle: 'Create Password',
					requestState: mergeRequestState(state, {
						queryParams: {