fix(spa): Fix relative alias redirects (#1688)
This commit is contained in:
parent
b2752e7262
commit
a934397961
1 changed files with 1 additions and 1 deletions
|
@ -41,5 +41,5 @@ export async function fetchCanonical(url: URL): Promise<Response> {
|
|||
// to allow the caller to read it if it's was not a redirect
|
||||
const text = await res.clone().text()
|
||||
const [_, redirect] = text.match(canonicalRegex) ?? []
|
||||
return redirect ? fetch(redirect) : res
|
||||
return redirect ? fetch(`${new URL(redirect, url)}`) : res
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue