Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/helpers/redirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const generateLocaleRedirects = ({
const redirects: NetlifyConfig['redirects'] = []
// If the cookie is set, we need to redirect at the origin
redirects.push({
from: `${basePath}${trailingSlash ? '/' : ''}`,
from: `${basePath}/`,
to: HANDLER_FUNCTION_PATH,
status: 200,
force: true,
Expand All @@ -32,7 +32,7 @@ const generateLocaleRedirects = ({
}
redirects.push({
from: `${basePath}/`,
to: `${basePath}/${locale}/`,
to: `${basePath}/${locale}${trailingSlash ? '/' : ''}`,
status: 301,
conditions: {
Language: [locale],
Expand Down