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 max-nextcloud committed Dec 30, 2022
1 parent f2ec651 commit 2c66901
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 2c66901

Please sign in to comment.