Hello everyone.

Let me explain my issue:
I have a website and I'm using pathauto to display the username of the current user in the URL. To do so, I used the Content Path pattern:
[current-user:name]/[node:title]/, it displays my username fine (http://xx.xxxxx.com/username1/services), but when I switch to another account, username1 is still displayed! Normally, it would display username2. Any help would be appreciated. Thank you!

Comments

Dave Reid’s picture

Issue summary:View changes
Status:Active» Closed (works as designed)

Pathauto aliases are not dynamic. They are generated and saved when the content or user is edited/saved, and not generated until the user is updated. I would *highly* not recommend using [current-user] in your alias patterns, it just isn't designed to work like that.