mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-13 20:31:48 +00:00
Router decode url params
This commit is contained in:
parent
c430f09376
commit
4941d6755c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue