Skip to content

Commit

Permalink
fix: (plugin link) avoid navigating out if the link is local
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Feb 12, 2025
1 parent df6a587 commit 443c844
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/content/ProseA.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
}
})
let link = props.href
if (link.startsWith("https://kestra.io")) {
// if the link is not local but should be (like in plugins) we remove the kestra.io part
link = link.slice(17)
}
let target = props.target || (link.startsWith("http") ? "_blank" : undefined);
Expand Down

0 comments on commit 443c844

Please sign in to comment.