Skip to content

Commit

Permalink
fix: encode custom paths (#145)
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
hinex authored and paulgv committed Oct 23, 2018
1 parent 9a2184a commit 98c9945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/routes.js
Expand Up @@ -77,7 +77,7 @@ exports.makeRoutes = (baseRoutes, {

// Get custom path if any
if (componentOptions.paths && componentOptions.paths[locale]) {
path = componentOptions.paths[locale]
path = encodeURI(componentOptions.paths[locale])
}

// Add route prefix if needed
Expand Down

0 comments on commit 98c9945

Please sign in to comment.