mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 00:43:15 +00:00
fix(journey): open the follower mail links under the public path prefix
The confirm and unsubscribe pages lived at /journey-follow/, which the client does not treat as a public path, so a reader without an account could be sent into the proxy re-auth flow. They now sit under /public/journey-follow/ beside the shared journey itself.
This commit is contained in:
@@ -30,12 +30,12 @@ function withJourney(text: string, journey: string): string {
|
||||
|
||||
/** The page that confirms an address. */
|
||||
export function confirmUrl(confirmToken: string): string {
|
||||
return `${getAppUrl()}/journey-follow/confirm?token=${encodeURIComponent(confirmToken)}`;
|
||||
return `${getAppUrl()}/public/journey-follow/confirm?token=${encodeURIComponent(confirmToken)}`;
|
||||
}
|
||||
|
||||
/** The page that stops the mails to an address. */
|
||||
export function unsubscribeUrl(unsubscribeToken: string): string {
|
||||
return `${getAppUrl()}/journey-follow/unsubscribe?token=${encodeURIComponent(unsubscribeToken)}`;
|
||||
return `${getAppUrl()}/public/journey-follow/unsubscribe?token=${encodeURIComponent(unsubscribeToken)}`;
|
||||
}
|
||||
|
||||
/** The shared journey itself. */
|
||||
|
||||
Reference in New Issue
Block a user