From 4941d6755cbb76b5cab8d432cb9e346b07b005d4 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Fri, 18 Oct 2019 14:59:50 +0300 Subject: [PATCH] Router decode url params --- src/router/Router/Router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/Router/Router.js b/src/router/Router/Router.js index 7fbaa26c3..16fbc5740 100644 --- a/src/router/Router/Router.js +++ b/src/router/Router/Router.js @@ -64,7 +64,7 @@ const Router = ({ className, onPathNotMatch, ...props }) => { const matches = pathname.match(routeConfig.regexp); const urlParams = routeConfig.urlParamsNames.reduce((urlParams, name, index) => { if (Array.isArray(matches) && typeof matches[index + 1] === 'string') { - urlParams[name] = matches[index + 1]; + urlParams[name] = decodeURIComponent(matches[index + 1]); } else { urlParams[name] = null; }