jam411 %!s(int64=3) %!d(string=hai) anos
pai
achega
8957e22004
Modificáronse 1 ficheiros con 5 adicións e 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);
 }