Details
-
Type:
Patch
-
Status: Done/Fixed
-
Priority:
Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.7
-
Fix Version/s: 4.1.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
When people implement the hook_civicrm_navigationMenu hook they can add entries to the navigation menu at the top. These entries can redirect to external websites, but then the redirection happens in the main CiviCRM window. This patch allows the addition of a 'target' property to the menu entries, so the target URL can open in a new window or tab.
Example: cf http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmnavigationMenu
Add a 'target' attribute after the 'url' in the params array:
[...]
'url' => 'http://www.testlink.com',
'target' => '_blank',
'permission' => 'access CiviContribute',
[...]