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 a36f596 commit cf759ffCopy full SHA for cf759ff
src/index.js
@@ -582,9 +582,9 @@ class Router {
582
if (path.query) {
583
params.queryParams = path.query
584
}
585
- fullPath = this._recognizer.generate(path.name, params)
+ fullPath = encodeURI(this._recognizer.generate(path.name, params))
586
} else if (path.path) {
587
- fullPath = path.path
+ fullPath = encodeURI(path.path)
588
589
const query = this._recognizer.generateQueryString(path.query)
590
if (fullPath.indexOf('?') > -1) {
@@ -595,9 +595,9 @@ class Router {
595
596
597
} else {
598
- fullPath = path ? path + '' : ''
+ fullPath = encodeURI(path ? path + '' : '')
599
600
- return encodeURI(fullPath)
+ return fullPath
601
602
603
0 commit comments