We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e31aae commit 76e983fCopy full SHA for 76e983f
src/Routers/PagesRouter.js
@@ -341,10 +341,13 @@ export class PagesRouter extends PromiseRouter {
341
342
// Get parameters
343
const params = this.getDefaultParams(req.config);
344
- params.locale = this.getLocale(req);
+ const locale = this.getLocale(req);
345
+ if (locale) {
346
+ params.locale = locale;
347
+ }
348
349
// Get JSON placeholders
- const placeholders = this.getJsonPlaceholders(params.locale, params);
350
+ const placeholders = this.getJsonPlaceholders(locale, params);
351
352
return this.pageResponse(absolutePath, params, placeholders);
353
}
0 commit comments