Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix internal links in direct-edit sessions
Signed-off-by: Raul <[email protected]>
  • Loading branch information
Raudius authored and mejo- committed Feb 27, 2023
commit 9957d998c51bac17e2ff00b9c6f2e1fc41c06ff9
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