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 597b25c commit 2196342Copy full SHA for 2196342
src/Routers/PublicAPIRouter.js
@@ -253,10 +253,11 @@ export class PublicAPIRouter extends PromiseRouter {
253
if (config.pages.enableLocalization && locale) {
254
return Utils.getLocalizedPath(defaultPath, locale).then(({ path, subdir }) =>
255
redirect
256
- ? this.redirectResponse(
257
- new URL(`/apps/${subdir}/${defaultFile}`, config.publicServerURL).toString(),
258
- params
259
- )
+ ? this.redirectResponse(new URL(
+ subdir
+ ? `/apps/${subdir}/${defaultFile}`
+ : `/apps/${defaultFile}`,
260
+ config.publicServerURL).toString(), params)
261
: this.pageResponse(path, params)
262
);
263
} else {
0 commit comments