« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateContributionTooltipExternalLinkSection.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/content/dependencies/generateContributionTooltipExternalLinkSection.js b/src/content/dependencies/generateContributionTooltipExternalLinkSection.js
index d4342098..4f9a23ed 100644
--- a/src/content/dependencies/generateContributionTooltipExternalLinkSection.js
+++ b/src/content/dependencies/generateContributionTooltipExternalLinkSection.js
@@ -58,8 +58,10 @@ export default {
                 // don't have a way of telling formatExternalLink to *not*
                 // use the fallback string, which just formats the URL as
                 // its host/domain... so is technically detectable.
-                ((html.resolve(platform, {normalize: 'string'}) ===
-                  (new URL(url)).host)
+                (((new URL(url))
+                    .host
+                    .endsWith(
+                      html.resolve(platform, {normalize: 'string'})))
 
                   ? language.$(capsule, 'noExternalLinkPlatformName')
                   : platform)),