Navigating directly to user page breaks 'back' button

AI-generated summary

Navigating directly to a user’s page breaks the back button functionality, creating a loop between /users/<username> and /users/<username>/activity. This issue does not occur when navigating through a user card. gdpelican reported this bug and found that it only happens when pasting the link directly into a browser window. eviltrout believes this is a bug in the Ember framework and is hoping it will be fixed in the next Ember upgrade.

Hey Discourse!

I just noticed that navigating directly to a user’s page (http://meta.discourse.org/users/gdpelican) breaks the back button functionality (it creates a loop between /users/<username> and /users/<username>/activity)

Seems to work ok when navigating through, say, the user card though.

6 Likes

Hmm… seems to work when linked from a topic within the app, but typing that link in directly to a browser window causes that weird redirect.

Maybe not the biggest deal, but made me want to tear my hair out for a second or two.

3 Likes

Something for you to peek at @eviltrout.

1 Like

I believe this is a bug in the Ember framework. I created a workaround previously that rewrites URLs but I couldn’t get the typing or copying and pasting one to work. Fortunately, I think it’s quite a rare case to paste a URL like that then hit back.

I’m hoping the next Ember upgrade fixes it. There are many fixes included and it worked before we upgraded to this release.

2 Likes