Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using the login destination module if i put user it brings me to the user screen but the url at the top is www.domain.com/user
i need it to be www.domain.com/user/1 1 being the uid of whatever user is logining in so something like this is needed
return array('path' => 'user/$user->uid/'>
but that doesn't work.... any ideas?
Comments
Comment #1
shaunpv CreditAttribution: shaunpv commentedmy prob is that [uid] shows %5Buid%5D when the link is clicked instead of the user id number
Comment #2
mithy CreditAttribution: mithy commentedyou put the $user variable in single apostrophes. It is not evaluated. Change to " or use string concatenation.
Comment #3
BrianLP CreditAttribution: BrianLP commentedThis worked for me