fix
This commit is contained in:
parent
603b305234
commit
814c709814
File diff suppressed because one or more lines are too long
|
|
@ -56,7 +56,7 @@ export const Vi: FC<{
|
||||||
if (pathname.startsWith("http://") || pathname.startsWith("https://"))
|
if (pathname.startsWith("http://") || pathname.startsWith("https://"))
|
||||||
return pathname;
|
return pathname;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (["prasi.avolut.com", "localhost"].includes(location.hostname)) {
|
if (["prasi.avolut.com", "localhost"].includes(location.hostname)) {
|
||||||
if (vi.site.api_url) {
|
if (vi.site.api_url) {
|
||||||
if (!vi.site_url) {
|
if (!vi.site_url) {
|
||||||
|
|
@ -81,9 +81,11 @@ export const Vi: FC<{
|
||||||
if (!path.startsWith("/")) {
|
if (!path.startsWith("/")) {
|
||||||
path = "/" + path;
|
path = "/" + path;
|
||||||
}
|
}
|
||||||
return `${u.protocol}//${u.host}${
|
if (w.prasiContext.siteUrl) {
|
||||||
path.startsWith("/") ? path : `/${path}`
|
path = w.prasiContext.siteUrl(path);
|
||||||
}`;
|
}
|
||||||
|
|
||||||
|
return `${u.protocol}//${u.host}${path}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return pathname;
|
return pathname;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue