After upgrading from dmxrouting.js 3.0.2 -> 3.0.5 my nav link like this no longer works (nothing happens after click, I expect it to go to the url in the href):
<li class="nav-item">
<a href="https://google.com" class="nav-link py-1" data-bs-dismiss="offcanvas" data-bs-target="#sidebarMenu">
<i class="bi bi-patch-question-fill pe-none me-2"></i>
<span>Help</span>
</a>
</li>
@patrick We had discussion about this before, can't find the thread.
Is this intended? I don't see anything wrong with this html.
Removing the data-bs
attributes seems to fix it, but I'd like to be able to keep that in.
I also prefer if the selector remains (dmx.config.mapping["a[href]"] = "link"),
so I can use <a>
html elements for example to open bootstrap tabs.
I now had to change:
<a class="nav-item nav-link active" data-bs-toggle="tab" role="tab" aria-controls="publish" aria-selected="true" data-bs-target="#publish" id="publicationSettings">Publicatie</a>
To:
<button class="nav-item nav-link active" data-bs-toggle="tab" role="tab" aria-controls="publish" aria-selected="true" data-bs-target="#publish" id="publicationSettings">Publicatie</button>
In summary:
- Why does it hijack and break the nav link?
- Can we keep the selector
a
and nota[href]
?
Thanks!