Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Gabrielsson committed Aug 13, 2024
1 parent 5cee234 commit 727dd1a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nightly/modules/navigate.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ app.module.navigate = {
* @private
*/
_click: function (event) {
var link = app.element.getTagLink(event.target)
if (link) {
var link = app.element.getTagLink(event.target),
href = link && link.attributes.href

if (link && href) {
// Support href in all elements.
var href = link.attributes.href
if (href && link.localName !== 'a') {
if (link.localName !== 'a') {
link.href = href.value
link.pathname = link.baseURI + href.value
}
Expand Down

0 comments on commit 727dd1a

Please sign in to comment.