Skip to content
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

+2-1
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)