Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 2e09070

Browse files
hotfix index gsp pages in i18n (#131)
1 parent 759da99 commit 2e09070

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/helpers/getPrerenderManifest.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const transformManifestForI18n = (manifest) => {
1515
newRoutes[route] = routes[route];
1616
} else {
1717
locales.forEach((locale) => {
18-
const routeWithPrependedLocale = `/${locale}${route}`;
18+
const routeWithPrependedLocale =
19+
route === "/" ? `/${locale}` : `/${locale}${route}`;
1920
newRoutes[routeWithPrependedLocale] = {
2021
dataRoute: getDataRouteForRoute(route, locale),
2122
srcRoute: route,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /