Skip to content

Commit

Permalink
Always open link in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzyla committed Jan 10, 2022
1 parent aff7b25 commit d5c2424
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function createLink(name: string, value: string): Element {
const link = document.createElement("a");
const URL = `/app/discover#/?_a=(query:(language:kuery,query:'${name}:"${value}"'))`;
link.setAttribute("href", URL);
link.setAttribute("target", "_blank");
link.setAttribute("rel", "noreferrer noopener");
link.classList.add("kibana-clicker-link");
link.textContent = value;
return link;
Expand Down

0 comments on commit d5c2424

Please sign in to comment.