XF 2.1 Open div data-href in a new tab

BassMan

Well-known member
Hi,

how can I open div data-href in a new tab?

<div data-href="some_link"......
 
Last edited:
It should work

<div>test <a href="https://www.google.com" target="_blank" rel="noopener">link</a></div>
 
No, it's something like this:

<div class="menu" data-menu="menu" aria-hidden="true" data-href="{{ link('some_link) }}">......

I want links in that menu to open in new tab.
 
Back
Top Bottom