Skip to content

Commit 98c9945

Browse files
hinexpaulgv
authored andcommitted
fix: encode custom paths (#145)
Fixes #7
1 parent 9a2184a commit 98c9945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ exports.makeRoutes = (baseRoutes, {
7777

7878
// Get custom path if any
7979
if (componentOptions.paths && componentOptions.paths[locale]) {
80-
path = componentOptions.paths[locale]
80+
path = encodeURI(componentOptions.paths[locale])
8181
}
8282

8383
// Add route prefix if needed

0 commit comments

Comments
 (0)