When using the URL Alter module along with the login block, Front Page does not allow the user to log in (it just displays a 404 error, and the user remains logged out.) The problem lies in the custom_url_rewrite_outbound function, which, because it is implemented in URL Alter, is not being properly invoked for Front Page (at least, that's my understanding.) The solution is to implement the hook_url_outbound_alter function. The included patch should take care of this. In the event that URL Alter is not installed, then it will implement custom_url_rewrite_outbound to call the hook_url_outbound_alter override. This seems to be working for me now...
This is my first attempt at creating a patch, so I hope it works...
Comment | File | Size | Author |
---|---|---|---|
front_page__url_alter.patch | 1.08 KB | lunazoid |
Comments
Comment #1
timhilliard CreditAttribution: timhilliard commentedHi lunazoid,
After I wrote the 6.x-2.x version of the module I realised this module existed and I should use it. So I will apply this patch and make sure it works correctly. Thanks for writing this.
Cheers,
Tim
Comment #2
Simon Georges CreditAttribution: Simon Georges commentedCommitted. Thanks!