diff --git a/src/utils/url.ts b/src/utils/url.ts index 2ec419a9..afd43963 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -11,7 +11,7 @@ const getAbsoluteUrl = (path: string) => { try { // eslint-disable-next-line no-new new URL(path); - } catch (e) { + } catch { path = new URL(path, window.location.origin).href; }