Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

hotfix index gsp pages in i18n #131

Merged
merged 1 commit into from
Jan 6, 2021
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
3 changes: 2 additions & 1 deletion lib/helpers/getPrerenderManifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const transformManifestForI18n = (manifest) => {
newRoutes[route] = routes[route];
} else {
locales.forEach((locale) => {
const routeWithPrependedLocale = `/${locale}${route}`;
const routeWithPrependedLocale =
route === "/" ? `/${locale}` : `/${locale}${route}`;
newRoutes[routeWithPrependedLocale] = {
dataRoute: getDataRouteForRoute(route, locale),
srcRoute: route,
Expand Down