From c92cf99721fbf078aa6b1f980eb2126d58e3e56c Mon Sep 17 00:00:00 2001 From: Zach Lasiuk Date: Mon, 5 Aug 2024 09:30:19 -0500 Subject: [PATCH] normalize but keep () and / --- .../static/js/eco-dashboard/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/arm-design-system-hugo-theme/static/js/eco-dashboard/search.js b/themes/arm-design-system-hugo-theme/static/js/eco-dashboard/search.js index 797e432a..fd31e0f2 100644 --- a/themes/arm-design-system-hugo-theme/static/js/eco-dashboard/search.js +++ b/themes/arm-design-system-hugo-theme/static/js/eco-dashboard/search.js @@ -75,7 +75,7 @@ function updatePageMetadata(package_dom) { if (!does_it_woa) { social_description = "View "+pkg_name+" in the Ecosystem Dashboard for Arm and discover if it runs on Arm (and if not, what alternative packages do)."; } - let new_cannonical = 'https://www.arm.com/developer-hub/ecosystem-dashboard?package='+sanitizeInput(pkg_name); + let new_cannonical = 'https://www.arm.com/developer-hub/ecosystem-dashboard?package='+normalizePackageName(pkg_name).replaceAll('(','').replaceAll(')','').replaceAll('__','/');