通用用户偏好设置 URL

I find myself needing to answer questions for users sometimes and to provide instructions. Having an absolute path with the username (eg https://domain.tld/u/YOUR_USERNAME/preferences/account) for user preferences has become burdensome since I have to provide unique instructions each time and general FAQs are not really possible without sending screenshots on how to click to places.

It would be so much easier if we simply allowed users to go to: https://domain.tld/preferences/account or https://domain.tld/account/preferences

Currently when you need to explain to a user how to get to their preferences, you tell them:

  1. Go to user icon in the upper right beside the 3 horizontal lines (most users don’t know what a hamburger icon or such is).
  2. Click on your username that’s in the upper left of that upper right menu/popdown.
  3. Click on the 2nd item up from the bottom that says “Preferences” and has a gear to the left.

I think it’s pretty clear that it would be both easier for admins and users if we had a simplified URL path so that we could give general URLs that would work for all users to get to their preferences.

I wouldn’t even mind if there’s a /u in there as well. I just simply believe we need to make a simpler URL path available as a usability improvement for everyone.

4 个赞

This already exists, use /my/ like so

https://example.com/my/preferences/account

14 个赞

Holy cow, this is great to know. I sure wish it would have been the default or somehow more evident! Thanks!

3 个赞

@codinghorror,在让用户使用 /my/ 路由别名一段时间后,我确信如果系统允许,我们完全应该默认将 /my/ 用于几乎所有场景,而不是 /u/用户名/(甚至 /my/profile 也比 /u/用户名 更合理)。用户们正在复制粘贴他们的用户名来帮助他人,但除非有人明确告知,否则没人意识到 /my/ 其实是可用的。

目前有没有办法设置这一点?

1 个赞

它本来就是按这种方式工作的,所以我不太清楚您具体想要什么?

https://meta.discourse.org/my/activity
https://meta.discourse.org/my/notifications
https://meta.discourse.org/my/messages
https://meta.discourse.org/my/preferences/categories

基本上,对于用户页面上的任何链接,只需在 URL 中将

u/{username}

替换为

my

5 个赞