My default language is english and the other language is chinese. I enabled the "Language Path-Option" from global redirect plugin. When I'm on the content-overview-page and want to edit the chinese page, everything turns to chinese, not only the form-content. So I change manually the prefix from chinese to /en, and then the interface is english and content chinese. But this is not possible with global redirect, it crashes the "administration language"-plugin (which do the prefix change automatically) and redirects all the time to english. I thought the plugin should not work on admin pages. I think, it's really important that editor can access edit pages without everything turns to, for example, chinese. Is it possible to fix this, is there a "trick" or is my configuration not correct?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pumpkin8 created an issue. See original summary.

jetcode’s picture

I think the problem comes from line 349 in globalredirect.module (_globalredirect_is_active() function)

It only checks if we are on a path starting with /admin or /batch
But when you edit or translate nodes, the path is node/[nid]/edit and node/[nid]/translate

When the "Language Path Checking" option is checked, redirection happens on these pages even if "Ignore Admin Path" is true.

barthje’s picture

FileSize
743 bytes

It should be something like this: if ($settings['ignore_admin_path'] && (arg(0) == 'batch' || path_is_admin(current_path()))) {

I'm surprised it didnt already work like this. I included a patch.

paulihuhtiniemi’s picture

FileSize
547 bytes

Previous patch didn't apply for me, here's an updated version.