Skip to content

Commit

Permalink
fix: fix redirect after // (#3417)
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor authored Oct 18, 2024
1 parent 8fe3bd3 commit bd39076
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/state/useAfterInitHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ export function useAfterInitHook(handledKubeconfigId: KubeconfigIdHandleState) {

initDone.current = true;
const previousPath = getPreviousPath();
if (previousPath) {

if (
previousPath &&
previousPath.startsWith('/') &&
!previousPath.startsWith('//')
) {
navigate(previousPath);
removePreviousPath();
} else {
Expand Down

0 comments on commit bd39076

Please sign in to comment.