returnUrl: joinUrl()

in src/server/routes/delete.ts [107:129]


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

			// get the user's attributes from the members data api
			const userAttributes = await getUserAttributes({
				accessToken: state.oauthState.accessToken.toString(),
			});

			// check if the user has a paid product
			if (userAttributes) {
				const contentAccess: UserAttributesResponse['contentAccess'] = (() => {
					/**
					 * Cypress Test START
					 *
					 * This code is only used in Cypress tests to mock the user's content access
					 */
					if (runningInCypress && cypressMockStateCookie) {
						const cypressContentAccess: UserAttributesResponse['contentAccess'] =
							{