fix(console): complete Go login readiness
This commit is contained in:
parent
86e4631993
commit
92e5af4fa0
59 changed files with 3410 additions and 676 deletions
|
|
@ -78,8 +78,6 @@ function localeFromAcceptLanguage(header: string | null) {
|
|||
}
|
||||
|
||||
export const onRequest = defineMiddleware((ctx, next) => {
|
||||
if (/^\/docs\/[^/]+\/go\/?$/.test(ctx.url.pathname)) return redirect(ctx.url, "/docs/go")
|
||||
|
||||
const alias = docsAlias(ctx.url.pathname)
|
||||
if (alias) {
|
||||
return redirect(ctx.url, alias.path, alias.locale)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue