diff --git a/src/js/services/RouterService.js b/src/js/services/RouterService.js index 72fc5a0a..c984f001 100644 --- a/src/js/services/RouterService.js +++ b/src/js/services/RouterService.js @@ -31,7 +31,7 @@ const pathToParams = (path: string): RouterLocationState => { if (urlParts.length < 1 || path === "/") return params; for (let i = 0, len = urlParts.length; i < len; i+=2) { - params[ urlParts[i] ] = urlParts[ i + 1 ]; + params[ urlParts[i] ] = urlParts[ i + 1 ] || urlParts[i]; } if (params.hasOwnProperty('device')) {