I am trying to set the redirection condition for only the front page and am having some trouble - i.e. I only want redirection to occur if a user logs in from the front page. I know I need to create some type of boolean value for but I'm inept at php and could use some help. Anyone have any ideas? Thanks.

Comments

rsvelko’s picture

Status: Active » Postponed
Khalor’s picture

Version: 6.x-2.12 » 6.x-2.5

Any chance we could work on this? The <front> variable exists if using PHP snippet mode for redirection, but that's a pretty weird format for a PHP variable, and it's tough to know what it returns/what to compare it against to return the correct boolean value for front-only redirection.

Khalor’s picture

Version: 6.x-2.5 » 6.x-2.12
Status: Postponed » Active

updating to current version

mithy’s picture

Sure we can. In the meanwhile try something like this:

return drupal_match_path($_GET['q'], variable_get('site_frontpage', 'node') );