Skip to content
Snippets Groups Projects
Commit d525f1b5 authored by Charles-Henri Decultot's avatar Charles-Henri Decultot
Browse files

Merge branch 'backport/v4-dev/1289' into 'v4-dev' (!1293)

fix(router): Don't capture clicks on links with target attr by cogk [frappe] PR#24110 [backport/v4]

See merge request !1293
parents 688e3122 ad482dec
Branches
Tags
Loading
......@@ -40,6 +40,10 @@ $("body").on("click", "a", function (e) {
const href = target_element.getAttribute("href");
const is_on_same_host = target_element.hostname === window.location.hostname;
if (target_element.getAttribute("target") === "_blank") {
return;
}
const override = (route) => {
e.preventDefault();
frappe.set_route(route);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment