yusuketk пре 5 година
родитељ
комит
71c1c75840
1 измењених фајлова са 0 додато и 4 уклоњено
  1. 0 4
      src/client/js/components/PageEditor/LinkEditModal.jsx

+ 0 - 4
src/client/js/components/PageEditor/LinkEditModal.jsx

@@ -191,10 +191,6 @@ class LinkEditModal extends React.PureComponent {
       // rootPaths of md link and pukiwiki link are different
       // rootPaths of md link and pukiwiki link are different
       const rootPath = linkerType === Linker.types.markdownLink ? path.dirname(pagePath) : pagePath;
       const rootPath = linkerType === Linker.types.markdownLink ? path.dirname(pagePath) : pagePath;
       reshapedLink = path.relative(rootPath, linkInputValue);
       reshapedLink = path.relative(rootPath, linkInputValue);
-      if (!reshapedLink.startsWith('.')) {
-        reshapedLink = `./${reshapedLink}`;
-
-      }
     }
     }
 
 
     return new Linker(
     return new Linker(