Closed gcushen closed 3 years ago
I can take a look at this, but first I need to clarify a few things.
1) new_tab = true
forces the link to open in a new tab, i.e. target="_blank" rel="noopener"
.
2) new_tab = false
sets target = ""
.
3) This will break backwards compatibility, where a http(s)
link is automatically opened in a new tab. Or do we want to keep this feature?
An immediate problem that comes to mind is that target="_blank"
doesn't work with bootstraps data-target
. Consequently, specifying new_tab = true
on a menu item pointing at a widget, will not open in a new tab.
Was this ever implemented? Trying to do something similar in my current menu with external links and a CV file download.
I would also really like to be able to force a menu item to open in a new tab. Any updates about this feature request?
Would be a really nice feature. I have a link to a status page in my menu, this should open in a new tab if possible.
Feature Request
Add
new_tab
option using Hugo's new menu system in v0.79 to customize whether main menu links open in new tabs.Similar logic albeit for a different purpose was proposed in #2010
Other than general customization, such capability would also be useful for those who effectively have a Wowchemy site within a site (e.g. using two templates on the same domain) so that the sites can effectively share the same menu items but when full URLs to the other site instance are provided in the menu, they can open in the same tab.
Requires bumping Hugo min version to 0.79.1.