fix: redirect users to /refresh on unauth and mod webview links
This commit is contained in:
@@ -57,11 +57,22 @@ export const programOverview = {
|
||||
sv: `/sv/webview/om-scandic-friends`,
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
const refreshUrl = {
|
||||
da: `/da/webview/refresh`,
|
||||
de: `/de/webview/refresh`,
|
||||
en: `/en/webview/refresh`,
|
||||
fi: `/fi/webview/refresh`,
|
||||
no: `/no/webview/refresh`,
|
||||
sv: `/sv/webview/refresh`,
|
||||
}
|
||||
|
||||
export const webviews = [
|
||||
...Object.values(benefits),
|
||||
...Object.values(overview),
|
||||
...Object.values(points),
|
||||
...Object.values(programOverview),
|
||||
...Object.values(refreshUrl),
|
||||
]
|
||||
|
||||
export const myPagesWebviews = [
|
||||
@@ -71,3 +82,5 @@ export const myPagesWebviews = [
|
||||
]
|
||||
|
||||
export const loyaltyPagesWebviews = [...Object.values(programOverview)]
|
||||
|
||||
export const refreshWebviews = [...Object.values(refreshUrl)]
|
||||
|
||||
Reference in New Issue
Block a user