Skip to content
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

www.derbund.ch - Redirection to the wrong section of the page after using the browser's back button #45508

Closed
webcompat-bot opened this issue Nov 27, 2019 · 4 comments
Labels
browser-firefox engine-gecko The browser uses the Gecko rendering engine ml-needsdiagnosis-false ML - no need for diagnosis priority-normal severity-important A non-core broken piece of functionality, not behaving the way you would expect.
Milestone

Comments

@webcompat-bot
Copy link

URL: https://www.derbund.ch/

Browser / Version: Firefox 70.0.1
Operating System: Windows 10
Tested Another Browser: Yes

Problem type: Desktop site instead of mobile site
Description: Scrolls in wrong position
Steps to Reproduce:
Press a link in the end of the page and then return to the main page, the link is at the wrong position.

Browser Configuration
  • None

From webcompat.com with ❤️

@webcompat-bot webcompat-bot added this to the needstriage milestone Nov 27, 2019
@webcompat-bot webcompat-bot added browser-firefox engine-gecko The browser uses the Gecko rendering engine ml-needsdiagnosis-false ML - no need for diagnosis labels Nov 27, 2019
@cipriansv cipriansv changed the title www.derbund.ch - desktop site instead of mobile site www.derbund.ch - Redirection to the wrong section of the page after using the browser's back button Nov 27, 2019
@cipriansv cipriansv added priority-normal severity-important A non-core broken piece of functionality, not behaving the way you would expect. labels Nov 27, 2019
@cipriansv cipriansv modified the milestones: needstriage, needsdiagnosis Nov 27, 2019
@cipriansv
Copy link

Thanks for the report.

I was indeed able to reproduce the issue. After I click on a link and access the corresponding page, clicking the browser's back button on Firefox redirects to the top of the previous page while on Chrome I am redirected to the previous page having the link in focus.

Tested with:
Browser / Version: Firefox Nightly 72.0a1 (2019-11-25), Chrome 78.0.3904.108
Operating System: Windows 10 Pro

Moving to needsdiagnosis.

@karlcow
Copy link
Member

karlcow commented Dec 2, 2019

This looks like the wikipedia viewer issue :) #45023
https://bugzilla.mozilla.org/show_bug.cgi?id=1563587

https://www.fxsitecompat.dev/en-CA/docs/2019/history-navigation-methods-are-now-asynchronous/

Starting with Firefox 70, the history.back, history.forward and history.go methods will behave asynchronously like Google Chrome and Apple Safari. This change may break any site relying on (browser detection and) the synchronous behaviour which can still be seen in Microsoft Edge, as pointed out in a bug comment. You can listen to the popstate event to know when a history navigation is complete.

but fwiw on macOS and the latest Firefox Nightly this is working for me. So I'm not sure.

  1. go to https://www.derbund.ch/
  2. Scroll a bit
  3. click on a link
  4. wait for the page to be fully loaded
  5. hit back button
  6. The page comes back at the same position than initially.

@karlcow karlcow closed this as completed Dec 2, 2019
@karlcow karlcow modified the milestones: needsdiagnosis, worksforme Dec 2, 2019
@karlcow
Copy link
Member

karlcow commented Dec 2, 2019

It seems to use

window.Twenty.appVersion
"1.0.3195"

and this framework seems to control history.

Capture d’écran 2019-12-02 à 11 55 08

@lock
Copy link

lock bot commented Dec 9, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue at https://webcompat.com/issues/new if you are experiencing a similar problem.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
browser-firefox engine-gecko The browser uses the Gecko rendering engine ml-needsdiagnosis-false ML - no need for diagnosis priority-normal severity-important A non-core broken piece of functionality, not behaving the way you would expect.
Projects
None yet
Development

No branches or pull requests

3 participants