Skip to content

Commit 2fe9d54

Browse files
authored
fix(cloud-function): redirect blog/curriculum/play without locale (#10654)
Also removes signin/signup, which are obsolete.
1 parent 734c37c commit 2fe9d54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: cloud-function/src/middlewares/redirect-locale.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { getLocale } from "../internal/locale-utils/index.js";
44
import { VALID_LOCALES } from "../internal/constants/index.js";
55
import { redirect } from "../utils.js";
66

7-
const NEEDS_LOCALE = /^\/(?:docs|search|settings|signin|signup|plus)(?:$|\/)/;
7+
const NEEDS_LOCALE =
8+
/^\/(?:blog|curriculum|docs|play|search|settings|plus)(?:$|\/)/;
89

910
export async function redirectLocale(
1011
req: Request,

0 commit comments

Comments
 (0)