We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f507dcb commit a2aeb82Copy full SHA for a2aeb82
src/parsers/routeToLocation.js
@@ -21,7 +21,7 @@ const createMatchRouteToPath = registry => ({ id, params = {}, query = {}, hash
21
try {
22
// remove front trailing backslash (disable '//' situation)
23
Object.keys(params).forEach(name => {
24
- params[name] = (params[name] || '').replace(/^\//, '');
+ params[name] = String(params[name] || '').replace(/^\//, '');
25
});
26
27
// path-to-regexp (2.4.0): encodeURI by default, disable it with encode option
0 commit comments