-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Web] Users sometimes taken back to previous URL (or blank page) when clicking some links #710
Comments
I've had this happen several times too, but also having trouble finding a reliable way to reproduce it. Something that might be related is that toggling between Following and What's Hot does not push a history state. |
It feels like the history is being improperly memoized somehow. Try the following steps and print out
|
I've experienced the same issue, but I can't reliably reproduce the behavior. Windows, Chrome Version 114.0.5735.199 (Official Build) (64-bit) |
Update: we're aware this is an issue but have been unable to reproduce as of yet. We'll keep this issue open and in the backs of our minds until we're able to figure out what's causing this 👍 |
I am able to replicate it. Pressing Shift + F5 causes the page to show properly. |
@Zero3K Can you please provide reproduction steps? |
I do not know how I got it to happen. |
i can reproduce this on demand in Safari on macOS:
--> your browser will now jump back to your backstop page. the bug reproduces 100% of the time for me with these steps. |
reproduces as described on Chrome 121 (Win 11) |
can reproduce on Firefox 122.0.1 (macOS Sonoma) |
Seems opening the composer is not necessary - you can skip steps 8 and 9. I can also reproduce going google -> bsky.app -> search -> a suggested profile -> back -> a suggested profile -> home |
yeah i'm betting there are several ways to get here. i only spent a few minutes attempting to reduce it further. i had tried a version without the composer and the bug didn't reproduce. i must have made a mistake while trying to reduce it. oops. :) |
ohhhh this is why it seems to happen more on mac,, because people actually use the two finger swipe to go back. on Mouse Requiring OSes i am way more likely to click on the back arrow in the app instead of on the browser. |
Fantastic, thank you for the repros. This should make it a lot easier to diagnose. Anyone wants to dig into the source? |
It seems to be related to the fact that when you click on a post and NOT click the back arrow but click the home button, sometimes it takes you to your last position in your timeline, or sometimes it takes you to the top of your timeline (without fetching new posts) |
You don't have to search at all. bsky -> any page -> back -> any other page -> home also triggers it Weirdly enough this is not triggering any navigation events, only beforeunload gets triggered when this happens |
I can replicate this on other react navigation sites (for example https://evanbacon.dev ) Edit: here's a short thread where I tried to debug the issue https://bsky.app/profile/www.mozzius.dev/post/3kleujracen2d |
It's happening somewhere in or after batchedUpdates in react-dom |
I further described the bug and have submitted potential fix to the react-navigation repository. The linked issue contains very simple repo with this issue replicated and a video showing the problem. |
@SlickDomique Thank you! Applying your patch for now while we wait for it to get merged in. Thanks for digging into it!! |
Describe the bug
Intermittently, clicking on Home or Profile makes the browser leave bluesky and navigate to the page that my browser was on before bluesky.
To Reproduce
Steps to reproduce the behavior are unclear, but I experience the bug after clicking on Home or Profile in the navigation on the left hand side.
Expected behavior
I would be taken to the appropriate page in bluesky.
Screenshots
N/A
Details
Additional context
Not sure whether navigation to other pages (Search, Notifications, Moderation, Settings) are affected by the same bug.
The text was updated successfully, but these errors were encountered: