Browse Source

BugFix: addSlashToTheEnd of page-path-utils

Yuki Takei 7 years ago
parent
commit
1b41a7cf2d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/util/page-path-utils.js

+ 4 - 0
src/lib/util/page-path-utils.js

@@ -29,6 +29,10 @@ function isEndWithSlash(path) {
 }
 
 function addSlashToTheEnd(path) {
+  if (path === '/') {
+    return path;
+  }
+
   if (!isEndWithSlash(path)) {
     return `${path}/`;
   }