0

I would like to have a user's name as a part of a URL, e.g. mysite.com/username. This should redirect to the user profile. I use Profile 2 and Pathauto, but I am not sure how to do this.

apaderno
  • 28,547
  • 16
  • 75
  • 90
Vonder
  • 4,033
  • 15
  • 44
  • 61

2 Answers2

2

With pathauto, you just have to configure user paths with a user token, e.g. [user:name].

soju
  • 25,111
  • 3
  • 68
  • 70
1

Pathauto pattern of [user:name] under User paths should do the trick.

nmc
  • 8,724
  • 5
  • 36
  • 68
  • The problem is that it works for user page. But I would like to do it for profile page. When I put the same pattern under Profile paths it says it is not valid. – Vonder May 17 '11 at 14:54