diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-04-12 18:19:38 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-04-12 18:19:38 -0300 |
commit | e9166585454f1468e4ebcf8a85ba77cb17e02ae2 (patch) | |
tree | cf796a7b698ebb95ee7aeaff471a673302c7dfdb /src/urls.js | |
parent | f12c13bebd38b1b189ec7df59ed7024192887d48 (diff) |
urls: don't use subdirectoryPrefix across origins
Not related to other commits in this PR, sorry!!
Diffstat (limited to 'src/urls.js')
-rw-r--r-- | src/urls.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/urls.js b/src/urls.js index 5e334c1e..9cc4a554 100644 --- a/src/urls.js +++ b/src/urls.js @@ -283,9 +283,14 @@ export function getURLsFrom({ to = targetFullKey; } - return ( - subdirectoryPrefix + - urls.from(from).to(to, ...args)); + const toResult = + urls.from(from).to(to, ...args); + + if (getOrigin(toResult)) { + return toResult; + } else { + return subdirectoryPrefix + toResult; + } }; } |