jam411 hace 3 años
padre
commit
8957e22004
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      packages/core/src/utils/path-utils.js

+ 5 - 1
packages/core/src/utils/path-utils.js

@@ -143,5 +143,9 @@ export function attachTitleHeader(path) {
  * @memberof pathUtils
  */
 export function returnPathForURL(path, id) {
-  return path === '/' ? path : addHeadingSlash(id);
+  if (path === '/') {
+    return path;
+  }
+
+  return addHeadingSlash(id);
 }