Fix staticUrlToPrefixed url rewriting

This commit is contained in:
mvdbeek
2022-01-12 15:12:14 +01:00
parent 1e889ad338
commit 817a2d49e5
+1 -1
View File
@@ -44,7 +44,7 @@ export class MastheadState {
}
function staticUrlToPrefixed(appRoot, url) {
return url?.startsWith("/") ? `${appRoot}${url}` : url;
return url?.startsWith("/") ? `${appRoot}${url.substring(1)}` : url;
}
export function mountMasthead(el, options, mastheadState) {