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?
Comment | File | Size | Author |
---|---|---|---|
#4 | globalredirect-2632446-4.patch | 547 bytes | paulihuhtiniemi |
#3 | globalredirect-2632446.patch | 743 bytes | barthje |
Comments
Comment #2
jetcode CreditAttribution: jetcode commentedI 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.
Comment #3
barthje CreditAttribution: barthje commentedIt 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.
Comment #4
paulihuhtiniemi CreditAttribution: paulihuhtiniemi at Wunder commentedPrevious patch didn't apply for me, here's an updated version.