mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
40a1c302f9
commit
dd291da265
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue