diff --git a/site/assets/js/search.js b/site/assets/js/search.js
index <HASH>..<HASH> 100644
--- a/site/assets/js/search.js
+++ b/site/assets/js/search.js
@@ -40,7 +40,7 @@
         // When in production, return the result as is,
         // otherwise remove our url from it.
         // eslint-disable-next-line no-negated-condition
-        hit.url = currentUrl.indexOf(liveUrl) !== -1 ?
+        hit.url = currentUrl.indexOf(liveUrl) !== -1 ? // lgtm [js/incomplete-url-substring-sanitization]
           hit.url :
           hit.url.replace(liveUrl, '')
site/assets/js/search.js: ignore the LGTM alert (#<I>)