Просмотр исходного кода

BugFix for PagePathHierarchicalLink

Yuki Takei 5 лет назад
Родитель
Сommit
01da1014c2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/lib/components/PagePathHierarchicalLink.jsx

+ 1 - 1
src/lib/components/PagePathHierarchicalLink.jsx

@@ -40,7 +40,7 @@ const PagePathHierarchicalLink = (props) => {
   const isParentRoot = isParentExists && linkedPagePath.parent.isRoot;
   const isParentRoot = isParentExists && linkedPagePath.parent.isRoot;
   const isSeparatorRequired = isParentExists && !isParentRoot;
   const isSeparatorRequired = isParentExists && !isParentRoot;
 
 
-  const href = encodeURI(urljoin(basePath || '', linkedPagePath.href));
+  const href = encodeURI(urljoin(basePath || '/', linkedPagePath.href));
 
 
   return (
   return (
     <>
     <>