🐛 don't strip port in URL
This commit is contained in:
parent
529f7cf738
commit
2ff1b1c769
1 changed files with 3 additions and 1 deletions
|
|
@ -113,7 +113,9 @@ async function getLinksFromUrl(url: string, path: string) {
|
|||
}
|
||||
|
||||
function splitUrl(url: URL) {
|
||||
const baseUrl = `${url.protocol}//${url.hostname}`;
|
||||
const baseUrl = `${url.protocol}//${url.hostname}${
|
||||
url.port ? ":" + url.port : ""
|
||||
}`;
|
||||
const basePath = url.pathname;
|
||||
return {
|
||||
baseUrl,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue