• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 25.01.22, 12:37
  • Opened by: Jano Rohleder
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #22928 - Open Custom Menu Links in New Tab/Window?

Hi! Can I have custom links in the menu open in a new browser tab/window? If I change <a href=”{$menu.link}”> to <a href=”{$menu.link}” target=”_blank”> in pk_menu.tpl, it will open ALL menu items in a new tab. And if I just add

" target="_blank

at the end of the link in the BO, it doesn’t work because the " get converted into HTML entities:

&quot; target=&quot;_blank

Is there any way to do this?

Comments

Fred 26 Jan 2022, 12:42

Try to add “external” class like this https://take.ms/2rOdA

Jano Rohleder 26 Jan 2022, 16:21

Yes! Perfect! Thank you!

Fred 26 Jan 2022, 16:21

You are welcome!