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

shaunpv’s picture

my prob is that [uid] shows %5Buid%5D when the link is clicked instead of the user id number

mithy’s picture

you put the $user variable in single apostrophes. It is not evaluated. Change to " or use string concatenation.

BrianLP’s picture

This worked for me

<?php
global $user;
return "user/".$user->uid."/licensed-files";
?>