소스 검색

Merge pull request #5113 from overleaf/em-compile-error-link

Fix compile error link in TeX Live 2021

GitOrigin-RevId: d1193e638d6f41c2b8045350b16296c42944ff0c
Jakob Ackermann 5 년 전
부모
커밋
dd291da265
1개의 변경된 파일과 3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      services/web/frontend/js/ide/pdf/controllers/PdfController.js

+ 3 - 1
services/web/frontend/js/ide/pdf/controllers/PdfController.js

@@ -762,8 +762,10 @@ App.controller(
       path = path.replace(/^\/compile\//, '')
 
       const rootDocDirname = ide.fileTreeManager.getRootDocDirname()
-      if (rootDocDirname != null) {
+      if (rootDocDirname) {
         path = path.replace(/^\.\//, rootDocDirname + '/')
+      } else {
+        path = path.replace(/^\.\//, '')
       }
 
       return path