This commit is contained in:
Rizky 2024-04-01 14:24:45 +07:00
parent 86be750de2
commit 0cdeaa1c15
2 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -48,9 +48,10 @@ export const Root = () => {
base.route.router = router;
base.route.pages = pages;
let url = `${w._prasi.basepath}_prasi/code/index.js`;
if (url.startsWith("//")) url = url.substring(1);
if (!url.startsWith("/")) url = `/${url}`;
const basepath = w._prasi.basepath;
let url = `${
basepath.endsWith("/") ? basepath : `${basepath}/`
}_prasi/code/index.js`;
const cur = new URL(location.href);
if (url.startsWith("/")) {