fix: remove target=_blank from Help menu redirect
Atum shows an external-link icon for _blank links, disrupting the sidebar flow. The help link now opens in the same window. Claude-Session: https://claude.ai/code/session_01Jo2JpjCwfHAh2HHRSjczKq
This commit is contained in:
@@ -383,12 +383,9 @@ class MokoSuiteClient extends CMSPlugin implements BootableExtensionInterface
|
||||
var url = " . json_encode($supportUrl) . ";
|
||||
document.querySelectorAll('a[href*=\"help.joomla.org\"], a[href*=\"docs.joomla.org\"]').forEach(function(link) {
|
||||
link.href = url;
|
||||
link.target = '_blank';
|
||||
});
|
||||
document.querySelectorAll('a[href*=\"dashboard=help\"]').forEach(function(link) {
|
||||
link.href = url;
|
||||
link.target = '_blank';
|
||||
link.rel = 'noopener noreferrer';
|
||||
});
|
||||
});
|
||||
");
|
||||
|
||||
Reference in New Issue
Block a user