We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 543d642 commit 10c2b95Copy full SHA for 10c2b95
src/common/util.ts
@@ -48,7 +48,7 @@ export const resolveBase = (base?: string): string => {
48
if (!base || base.startsWith("/")) {
49
return base || ""
50
}
51
- const parts = location.pathname.replace(/^\//g, "").split("/")
+ const parts = location.pathname.split("/")
52
parts[parts.length - 1] = base
53
const url = new URL(location.origin + "/" + parts.join("/"))
54
return normalize(url.pathname)
0 commit comments