aboutsummaryrefslogtreecommitdiff
path: root/HutchSafariExtension/Resources/content.js
diff options
context:
space:
mode:
Diffstat (limited to 'HutchSafariExtension/Resources/content.js')
-rw-r--r--HutchSafariExtension/Resources/content.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/HutchSafariExtension/Resources/content.js b/HutchSafariExtension/Resources/content.js
index dba7c5d..e5cb087 100644
--- a/HutchSafariExtension/Resources/content.js
+++ b/HutchSafariExtension/Resources/content.js
@@ -63,7 +63,8 @@ function hutchDeepLinkForLocation() {
const path = hutchDeepLinkPath(location.hostname, hutchNormalizedPath(location.pathname));
const service = hutchDeepLinkService(location.hostname, path);
- return `hutch://${service}${path ? `/${path}` : ""}${location.search}${location.hash}`;
+ const pathSegment = path ? `/${path}` : "";
+ return `hutch://${service}${pathSegment}${location.search}${location.hash}`;
}
function storageGet(defaults) {