Username as a path

后端 未结 2 1785
天命终不由人
天命终不由人 2021-01-26 06:50

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 t

相关标签:
2条回答
  • 2021-01-26 07:24

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

    0 讨论(0)
  • 2021-01-26 07:28

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

    0 讨论(0)
提交回复
热议问题