Skip to content

Commit

Permalink
fix: fix redirect after //
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Oct 17, 2024
1 parent 604b4bc commit aed090b
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 aed090b

Please sign in to comment.