Skip to content

Commit

Permalink
Fix internal links in direct-edit sessions
Browse files Browse the repository at this point in the history
Signed-off-by: Raul <[email protected]>
  • Loading branch information
Raudius authored and mejo- committed Feb 24, 2023
1 parent aa8a6fc commit f350fcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ const domHref = function(node, relativePath) {
if (!ref) {
return ref
}
if (!OCA.Viewer) {
return ref
}
if (ref.match(/^[a-zA-Z]*:/)) {
return ref
}
Expand Down

0 comments on commit f350fcf

Please sign in to comment.