Skip to content

Commit

Permalink
action-list.js: Use getAttribute to get href
Browse files Browse the repository at this point in the history
- `.href` returns the whole url with `http(s)`.
  • Loading branch information
sukhwinder33445 committed Aug 17, 2023
1 parent 3aedcca commit 9f77a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/action-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@
url = this.createMultiSelectUrl(activeItems);
} else {
let anchor = activeItems[0].querySelector('[href]');
url = anchor ? anchor.href : null;
url = anchor ? anchor.getAttribute('href') : null;
}
}

Expand Down

0 comments on commit 9f77a3b

Please sign in to comment.