Brings a visitor back to the page that sent them to sign in. The /authorize page sends a signed-out visitor to /login?next=, and the login page and RestrictedGuest follow next once they are signed in.

Functions

f
loginPath(path: string): string

Returns the /login path that comes back to path after signing in, a path on this site with its query.

f
nextPath(params: URLSearchParams): string | null

Returns the next of params when it is a path on this site, or null. Anything else, //elsewhere.example included, is ignored, so a link can't send someone off the site through the login page.