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.
2 parents a7da319 + dd7852e commit 24253caCopy full SHA for 24253ca
1 file changed
src/fns.js
@@ -36,7 +36,7 @@ function extractQueryParams(path) {
36
* @return {String}
37
*/
38
function extractPath(base, canonicalPath) {
39
- let path = canonicalPath.replace(base, '') || '/'
+ let path = canonicalPath?.replace(base, '') || '/'
40
let qsIndex = path.indexOf('?')
41
return (qsIndex > -1) ? path.slice(0, qsIndex) : path
42
}
0 commit comments