Explorar o código

judge is relative url

yusuketk %!s(int64=5) %!d(string=hai) anos
pai
achega
71c1c75840
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  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
       const rootPath = linkerType === Linker.types.markdownLink ? path.dirname(pagePath) : pagePath;
       reshapedLink = path.relative(rootPath, linkInputValue);
-      if (!reshapedLink.startsWith('.')) {
-        reshapedLink = `./${reshapedLink}`;
-
-      }
     }
 
     return new Linker(