]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-23187 Remove old fixup code since react-router-dom updated version has the fix
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>
Wed, 2 Oct 2024 09:12:32 +0000 (11:12 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 3 Oct 2024 20:02:52 +0000 (20:02 +0000)
server/sonar-web/src/main/js/helpers/urls.ts

index 4c6895e50a9543dd1bcd819f5c8971a7e81dddea..564bb50ffaba66417a07e5c459bf61d7667946b8 100644 (file)
@@ -256,10 +256,8 @@ export function getQualityProfileUrl(name: string, language: string): To {
 }
 
 export function getQualityGateUrl(name: string): To {
-  // This is a workaround for the react router bug: https://github.com/remix-run/react-router/issues/10814
-  const qualityGateName = name.replace(/%/g, '%25');
   return {
-    pathname: '/quality_gates/show/' + encodeURIComponent(qualityGateName),
+    pathname: '/quality_gates/show/' + encodeURIComponent(name),
   };
 }