开发者

Username as a path

开发者 https://www.devze.com 2023-03-04 06:15 出处:网络
I would like to have a user\'s name as a part of a URL, e.g. mysite.com/username. This should redire开发者_C百科ct to the user profile. I use Profile 2 and Pathauto, but I am not sure how to do this.

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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消