Active
Project:
Login Destination
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2009 at 16:47 UTC
Updated:
16 Mar 2011 at 01:53 UTC
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
Comment #1
rsvelko commentedComment #2
khalor commentedAny 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.Comment #3
khalor commentedupdating to current version
Comment #4
mithy commentedSure we can. In the meanwhile try something like this:
return drupal_match_path($_GET['q'], variable_get('site_frontpage', 'node') );