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 7886251 commit 2dda151Copy full SHA for 2dda151
resources/scripts/routers/ServerRouter.tsx
@@ -36,6 +36,9 @@ export default () => {
36
const clearServerState = ServerContext.useStoreActions((actions) => actions.clearServerState);
37
38
const to = (value: string, url = false) => {
39
+ if (value === '/') {
40
+ return url ? match.url : match.path;
41
+ }
42
return `${(url ? match.url : match.path).replace(/\/*$/, '')}/${value.replace(/^\/+/, '')}`;
43
};
44
0 commit comments