quantumalgorithms.org icon indicating copy to clipboard operation
quantumalgorithms.org copied to clipboard

Fix "back" button of few browsers (like Safari)

Open Scinawa opened this issue 2 years ago • 6 comments

Sometimes the "go back" button of the browser is not working, and we cannot figure out why. This is how to reproduce the bug.

  • Click on Section 2.4.4 from the left menu (i.e. https://quantumalgorithms.org/chapter-intro.html#modified-hadamard-test )
  • Scroll to the bottom of the page
  • Click reference C.8 in the appendix
  • Press go back in your browser.

In Safari, pressing back won't bring you to the end of the page.

Any idea on how to fix this is appreciated.

Scinawa avatar May 09 '22 06:05 Scinawa

Perhaps @Ikiga1 has more detail on this. I can reproduce the bug non-deterministically. :(

Scinawa avatar May 09 '22 06:05 Scinawa

@Scinawa @Ikiga1 after press back button on browser, i able to go back 2.4.4 . is that the expected behavior?

cometta avatar Jun 01 '22 14:06 cometta

Hello @cometta ! As we said, this bug appears in some browsers and not others. What are you using? It might also affect the presence of the bu if you are clicking a theorem or a reference.

Scinawa avatar Jun 01 '22 14:06 Scinawa

tested on safari and firefox, no issue. if you can capture a short video would be good

cometta avatar Jun 01 '22 23:06 cometta

Well, I tested on my system, After I go to C. 8 refrence and press back button it just go to previous page and takes some time to go to bottom of page automatically. But it goes to bottom page. I don't think there is any problem in any code, it's just that the latex and scripts that are written for math equations takes some time to load on website.

divshacker avatar Jun 02 '22 20:06 divshacker

Dear all! I confirm that I also struggle to reproduce the bug. However, this is the video of the bug (the browser is Safari):

https://user-images.githubusercontent.com/2940017/171740124-fc033cdf-5eb8-4ca2-8cfc-4e665c1b54d1.mov

Ale.

Scinawa avatar Jun 02 '22 21:06 Scinawa