fix: auth routing
This commit is contained in:
parent
6a5c1a74f1
commit
f256a65b59
3 changed files with 4 additions and 5 deletions
|
|
@ -91,6 +91,8 @@ export function strip(pathname: string) {
|
|||
export function route(locale: Locale, pathname: string) {
|
||||
const next = strip(pathname)
|
||||
if (next.startsWith("/docs")) return next
|
||||
if (next.startsWith("/auth")) return next
|
||||
if (next.startsWith("/workspace")) return next
|
||||
if (locale === "en") return next
|
||||
if (next === "/") return `/${locale}`
|
||||
return `/${locale}${next}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue