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...

CommentFileSizeAuthor
front_page__url_alter.patch1.08 KBlunazoid
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

timhilliard’s picture

Hi 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

Simon Georges’s picture

Status: Active » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.