Skip to content

Commit

Permalink
Fix for path without leading slash (kotx#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyk93 authored Apr 6, 2023
1 parent 7de7719 commit acada3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default {
}
}

if (path !== "/") {
if (path !== "/" && path.startsWith("/")) {
path = path.substring(1);
}

Expand Down

0 comments on commit acada3d

Please sign in to comment.