Link to /my/preferences leads to 404 when not logged in

Not sure why this is happening - when I type in https://community.namati.org/my/preferences in incognito mode, I am redirected to https://community.namati.org/login-preferences where I am prompted to log in to change my preferences. But if I click the link on the banner we’ve added to the forum homepage at https://community.namati.org to “add my profile picture” which links to that same URL I get a 404. Any thoughts?

3 Likes

Can we repro this @tshenry?

4 Likes

I can repro. You can actually see it right here on Meta as an anon user.

If you take a look at this post from an incognito window and open the following link in a new tab, it works, but if you click on it directly, it gives you a 404.

https://meta.discourse.org/my/preferences

This looks like where the problem area could be, but I’m not 100% sure at this point:

https://github.com/discourse/discourse/blob/master/app/controllers/users_controller.rb#L269-L278

5 Likes

Looks like a legit Ember type routing bug of some kind @sam?

4 Likes

Fixed via:

https://github.com/discourse/discourse/commit/236833ed5de64d50ab87ac943ce8fb880a6c4eb1

This also fixes 404 for other /my/*path … for example: https://meta.discourse.org/my/notifications

Thanks for reporting this issue @tobiaseigen. :+1:

7 Likes