Clicking logo doesn't always take you to top of home page


(probus) #1

Continuing the discussion from Scroll position is no longer being maintained when navigating to a topic:

I believe this fix caused that when clicking the logo the user is taken back to the same scroll position. Clicking the logo should take the user to top of the home page (latest by default), not replicate back button behaviour.


(Robin Ward) #2

Correct. Will fix this.


(Dave McClure) #3

This bug can be a feature sometimes:

  1. Scroll down the topic list
  2. Enter a topic, read to bottom
  3. Enter a suggested topic, read to bottom
  4. Repeat step 3 a few times
  5. Click logo to go back to position from step (1)

Just sayin’

(Click 6 again to go to the top of the topic list)


(Kane York) #4

No, that behavior should be triggering on back button, not logo click.


(Dave McClure) #5

Just pointing out that it does allow me to bypass multiple back button clicks.

Probably not a feature worth exchanging for expected behavior, but a feature nonetheless.


(Bill Ayakatubby) #6

@mcwumbly, I would classify it as “unintended/unexpected consequence,” aka “bug.” :wink:


(Robin Ward) #7

I’ve got a fix ready:

https://github.com/discourse/discourse/commit/721472dab4260900f803942a94bcf4d46acc7e38

I think generally we want you to lose your progress in the latest list if you have gone off browsing more than one topic. Latest should be fluid and might have changed while you were in those topics reading!


(Jeff Atwood) #8

Regression: Clicking logo doesn’t always take you to top of home page