fix path
This commit is contained in:
parent
f819290f39
commit
74fa488bb6
|
|
@ -81,7 +81,9 @@ export const Vi: FC<{
|
|||
if (!path.startsWith("/")) {
|
||||
path = "/" + path;
|
||||
}
|
||||
return `${u.protocol}//${u.hostname}${path}`;
|
||||
return `${u.protocol}//${u.host}${
|
||||
path.startsWith("/") ? path : `/${path}`
|
||||
}`;
|
||||
}
|
||||
|
||||
return pathname;
|
||||
|
|
|
|||
Loading…
Reference in New Issue