The menu item to add foreign URL has a Link rel
attribute field in the Link Type tab.
The value noopener
is missing from this list. If this could be added, that would be great.
Thanks!
Labels |
Added:
?
|
Huh. Okay, so it should also work. Thanks for clearing that out.
The question originated from trying to get my site to perform better in google LightHouse test.
It gives the warning to add rel="noopener"
or rel="noreferer"
to the link. After adding rel="noreferer"
, the warning remains. While in other links (from custom html) the warning disappeared after adding rel="noopener"
.
But I guess this is an issue for LightHouse than, and not Joomla :)
I actually copy pasted that information from lighthouse :)
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-02-19 22:40:30 |
Closed_By | ⇒ | jwaisner |
Closed_By | jwaisner | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/27990
Closing at this has been identified as not being related to Joomla!.
I'dd like to reopen this. After thinking some more on it ...
There are some cases where rel="noopener"
is the only good option.
Because we don't want to lose the Referer header, rel="noreferer"
just wont do.
Status | Closed | ⇒ | New |
Closed_Date | 2020-02-19 22:40:30 | ⇒ | |
Closed_By | joomla-cms-bot | ⇒ |
Closed_Date | 0000-00-00 00:00:00 | ⇒ |
Set to "open" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/27990
Reopened as per Author's request and new information provided.
Priority | Medium | ⇒ | Low |
I don't think it's the same issue. I don't mean to enforce this on all external url's.
It's just an option that's missing in the dropdown list for foreign URL menu type, in /administrator/components/com_menus/models/forms/item_url.xml.
For the field "menu-anchor_rel" (list type) this option should be added:
<option value="noopener"/>
That's all
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-02-21 18:12:30 |
Closed_By | ⇒ | Quy |
rel="noopener" prevents the new page from being able to access the window.opener property and ensures it runs in a separate process.
rel="noreferrer" attribute has the same effect, but also prevents the Referer header from being sent to the new page. See Link type "noreferrer".