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

Fix compile error link in TeX Live 2021

GitOrigin-RevId: d1193e638d6f41c2b8045350b16296c42944ff0c
This commit is contained in:
Jakob Ackermann 2021-09-15 16:13:43 +02:00 committed by Copybot
parent 40a1c302f9
commit dd291da265

View file

@ -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