This commit is contained in:
Rizky 2024-04-17 19:15:45 +07:00
parent f819290f39
commit 74fa488bb6
1 changed files with 3 additions and 1 deletions

View File

@ -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;