Multi language issue
| Project: | Secure Pages |
| Version: | 6.x-1.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Although I saw some bug fixes related to language issues, we are still having problems with secure pages in our multi language sites. Some pages that are recognized as secure pages in the default site language, are not secure anymore when switching to another language. This seems to be related (again) to the language prefix.
In issue #382042: Language prefix repeatedly added by Secure Page, there has been suggested a fix for this problem, but this still doesn't seem to cover all situations. This fix does not add the language prefix anymore, which solves a part of the problem, but when the language prefix is already present in the url or path trying to be matched, the secure page is still not recognized.
I don't know whether this is a known problem or if there is already a new patch for this, but I couldn't find any new issue related to this problem. I attached a patch which solved all language related issues with secure pages for me. (even when secure pages is disabled I have a problem in combination with the toboggan module: there are still multiple language prefixes in the login form action when a user tries to access an unauthorized page. I did not look any further for this issue since I will always use it in combination with secure pages)
The patch changes the securepages_match function: if there is already a language prefix in the path, it will be removed before matching the path. The patch also contains (a slightly modified version of) the http://drupal.org/files/issues/securepages-462438_2.patch (issue #462438: Alter #action of login block form). If this is not wanted, then only the second part of the module patch is important.
I don't know if this is the right approach for this solution, but it seems to be the clean solution working for me without modifying any core modules or files. I hope this could be helpful to someone.
Tom
| Attachment | Size |
|---|---|
| securepages.install.patch | 395 bytes |
| securepages.module.patch | 1.51 KB |
| securepages.admin_.patch | 888 bytes |

#1
subscribing