From e9166585454f1468e4ebcf8a85ba77cb17e02ae2 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 12 Apr 2025 18:19:38 -0300 Subject: urls: don't use subdirectoryPrefix across origins Not related to other commits in this PR, sorry!! --- src/urls.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src') 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; + } }; } -- cgit 1.3.0-6-gf8a5