fix: route unlocalized login and logout correctly
This commit is contained in:
@@ -15,7 +15,8 @@ export default function ProfileLayout({
|
||||
{profile}
|
||||
<Divider color="burgundy" opacity={8} />
|
||||
{creditCards}
|
||||
{communication}
|
||||
{/* TODO: Implement communication preferences flow. Hidden until decided on where to send user. */}
|
||||
{/* {communication} */}
|
||||
</section>
|
||||
</main>
|
||||
)
|
||||
|
||||
@@ -12,6 +12,16 @@ export const login = {
|
||||
sv: "/sv/logga-in",
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const loginUnLocalized = {
|
||||
da: "/da/login",
|
||||
de: "/de/login",
|
||||
en: "/en/login",
|
||||
fi: "/fi/login",
|
||||
no: "/no/login",
|
||||
sv: "/sv/login",
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const logout = {
|
||||
da: "/da/log-ud",
|
||||
@@ -22,6 +32,16 @@ export const logout = {
|
||||
sv: "/sv/logga-ut",
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const logoutUnLocalized = {
|
||||
da: "/da/logout",
|
||||
de: "/de/logout",
|
||||
en: "/en/logout",
|
||||
fi: "/fi/logout",
|
||||
no: "/no/logout",
|
||||
sv: "/sv/logout",
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const verifymagiclink = {
|
||||
da: "/da/verifymagiclink",
|
||||
@@ -36,4 +56,6 @@ export const handleAuth = [
|
||||
...Object.values(login),
|
||||
...Object.values(logout),
|
||||
...Object.values(verifymagiclink),
|
||||
...Object.values(loginUnLocalized),
|
||||
...Object.values(logoutUnLocalized),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user