summaryrefslogtreecommitdiff
path: root/HutchSafariExtension/Resources/background.js
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-07-16 11:50:53 -0500
committerGitHub <[email protected]>2026-07-16 11:50:53 -0500
commit0b6819d2d08b552e62fd236614d4c3c86a13394b (patch)
treeefb71f83c6dc62778ab01de9951cd229b50f348c /HutchSafariExtension/Resources/background.js
parent2b913e1b727429a3a6bc7eb023003ef2815919ae (diff)
parentf3c70e04148c57dcafead89b4e02b83e5f5635f8 (diff)
downloadhutch-3.8.1.tar.gz
hutch-3.8.1.tar.bz2
hutch-3.8.1.zip
Merge pull request #8 from zerolabsco/phase-3-sonarcloud-housekeepingv3.8.1
v3.8.1: SonarCloud triage, forceRefresh fix, housekeeping
Diffstat (limited to 'HutchSafariExtension/Resources/background.js')
-rw-r--r--HutchSafariExtension/Resources/background.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/HutchSafariExtension/Resources/background.js b/HutchSafariExtension/Resources/background.js
index 81bf8b6..0147de0 100644
--- a/HutchSafariExtension/Resources/background.js
+++ b/HutchSafariExtension/Resources/background.js
@@ -68,7 +68,8 @@ function hutchDeepLinkFor(rawURL) {
const path = deepLinkPath(url.hostname, normalizedPath(url.pathname));
const service = deepLinkService(url.hostname, path);
- return `hutch://${service}${path ? `/${path}` : ""}${url.search}${url.hash}`;
+ const pathSegment = path ? `/${path}` : "";
+ return `hutch://${service}${pathSegment}${url.search}${url.hash}`;
}
function showUnsupportedMessage(tabId) {