The admin links have not been changed in authorize.php. So whenever a module or theme is installed and when we click on the "Enable newly added themes/Modules", a not found page is displayed. Although this is a very minor issue and doesn't break up any code, a fix for this issue would be of great help.

Comments

Raphael Apard’s picture

Status: Active » Closed (won't fix)

There is no way to change it. authorize.php print link with this code : l(t('Administration pages'), 'admin')
You can get the renamed admin path using this code : l(t('Administration pages'), variable_get('rename_admin_path_value', 'admin')) but you will have to edit authorize.php.

bavarian’s picture

a bit confused here ...

in order to change the things mentioned in that thread it does not work for me to apply this patch in "authorize.php"

i need to change things in /modules/system/system.uppdater.inc

there in this function i find the code that needs to be changed

public function postInstallTasks() {
    return array(
              l(t('Enable newly added modules'), 'admin/modules'),
	  
	  // l(t('Administration pages'), 'admin'),
              l(t('Administration pages'), variable_get('rename_admin_path_value', 'admin')),
    );
  }

what I am wondering is ... this line
l(t('Enable newly added modules'), 'admin/modules'),

I guess it needs to be changed into somthing like
l(t('Enabble newly added modules'), variable_get('rename_admin_path_value', 'admin/modules')),
but cant get that line to work

help please!

Raphael Apard’s picture

Change code :
l(t('Enabble newly added modules'), variable_get('rename_admin_path_value', 'admin/modules')),
to:
l(t('Enabble newly added modules'), variable_get('rename_admin_path_value', 'admin') . '/modules'),

You can also use javascript to alter links (without patching core).