Closed (fixed)
Project:
RootCandy
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2011 at 14:19 UTC
Updated:
22 Dec 2011 at 17:10 UTC
The check access patch that was implemented in June of last year disabled external links from being added to the admin navigation. - http://drupal.org/node/815492
Proposed solution:
template.php
starting on line 87:
foreach ($menu_tree as $key => $item) {
$router_item = menu_get_item($item['href']);
$checkexternal = strpos($item['href'],'http');
if (!$router_item['access'] && $checkexternal === FALSE) {
continue;
}
Comments
Comment #1
sign commentedThanks for your report and patch.
I have fixed it in dev, in Drupal API we have a function that checks whether the link is external or not and counts with other protocols as well. http://api.drupal.org/api/drupal/includes--menu.inc/function/menu_path_i...
So the final code looks like:
Although it does display all the external links including the ones that are pointing to some specific admin page (eg. http://localhost/admin/build/block) but I guess that is up to the administrator who is maintaining the menu, etc... not going to add another check whether it is an internal link with the full URL or not.
Thanks