Skip to content

Commit

Permalink
Decode entry params used to generate the final url
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhefner committed Jun 26, 2019
1 parent 38f0f6d commit d1410c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -191,7 +191,7 @@ class ContentfulSitemap {
if (route.params) {
Object.keys(route.params).forEach((param) => {
const paramPath = route.params[param];
entryParams[param] = get(entry, paramPath);
entryParams[param] = get(entry, paramPath) ? decodeURIComponent(get(entry, paramPath)) : null;
});
}

Expand Down

0 comments on commit d1410c0

Please sign in to comment.