GET still shows a one-button page, a used invitation can resend or reopen for the signed-in invitee, and an email-change GET no longer signs the account out.
22 lines
559 B
TypeScript
22 lines
559 B
TypeScript
/**
|
|
* Routes that render product chrome only (`CreateFlowTopNav`), not marketing `Top`.
|
|
* Keep in sync with `ConditionalNavigationClient`.
|
|
*/
|
|
export function isChromelessNavigationPath(
|
|
pathname: string | null | undefined,
|
|
): boolean {
|
|
if (!pathname) {
|
|
return false;
|
|
}
|
|
if (
|
|
pathname.startsWith("/create") ||
|
|
pathname === "/login" ||
|
|
pathname.startsWith("/login/") ||
|
|
pathname.startsWith("/invite") ||
|
|
pathname.startsWith("/email-change")
|
|
) {
|
|
return true;
|
|
}
|
|
return /^\/use-cases\/[^/]+\/rule\/?$/.test(pathname);
|
|
}
|