We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25ccc79 commit 51832d3Copy full SHA for 51832d3
src/core/route/util.js
@@ -54,5 +54,7 @@ export const getParentPath = cached(path => {
54
})
55
56
export const cleanPath = cached(path => {
57
- return path.replace(/([^:])\/{2,}/g, '$1/')
+ return path
58
+ .replace(/^\/+/, '/')
59
+ .replace(/([^:])\/{2,}/g, '$1/')
60
0 commit comments