This commit is contained in:
Rizky 2024-04-20 22:59:28 +07:00
parent 603b305234
commit 814c709814
2 changed files with 24 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@ -81,9 +81,11 @@ export const Vi: FC<{
if (!path.startsWith("/")) {
path = "/" + path;
}
return `${u.protocol}//${u.host}${
path.startsWith("/") ? path : `/${path}`
}`;
if (w.prasiContext.siteUrl) {
path = w.prasiContext.siteUrl(path);
}
return `${u.protocol}//${u.host}${path}`;
}
return pathname;