Skip to content
Permalink
Browse files

Always add trailing slash for root urls

  • Loading branch information
zerodevx committed Sep 26, 2019
1 parent 03d216b commit 04e6b79abfe26ed55c7dec8287bccfac7400a01f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/index.js
@@ -31,7 +31,7 @@ class StaticSitemapCliCommand extends Command {
url = url.slice(0, -5);
}
}
if (flags.slash) {
if (flags.slash || url.split('/').length === 3) {
url = url + '/';
}
return url;

0 comments on commit 04e6b79

Please sign in to comment.
You can’t perform that action at this time.