Skip to content

Commit 2dda151

Browse files
authored
fix: correct route for console (pterodactyl#4178)
fixes pterodactyl#4177
1 parent 7886251 commit 2dda151

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

resources/scripts/routers/ServerRouter.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ export default () => {
3636
const clearServerState = ServerContext.useStoreActions((actions) => actions.clearServerState);
3737

3838
const to = (value: string, url = false) => {
39+
if (value === '/') {
40+
return url ? match.url : match.path;
41+
}
3942
return `${(url ? match.url : match.path).replace(/\/*$/, '')}/${value.replace(/^\/+/, '')}`;
4043
};
4144

0 commit comments

Comments
 (0)