From 804dd6c035328467eef10d0ac6b42847e05f2fa5 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Wed, 2 Oct 2024 11:12:32 +0200 Subject: [PATCH] SONAR-23187 Remove old fixup code since react-router-dom updated version has the fix --- server/sonar-web/src/main/js/helpers/urls.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/js/helpers/urls.ts b/server/sonar-web/src/main/js/helpers/urls.ts index 4c6895e50a9..564bb50ffab 100644 --- a/server/sonar-web/src/main/js/helpers/urls.ts +++ b/server/sonar-web/src/main/js/helpers/urls.ts @@ -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), }; } -- 2.39.5