Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Install page history broken #14583

Closed
zachgk opened this issue Apr 1, 2019 · 9 comments · Fixed by #18182
Closed

Install page history broken #14583

zachgk opened this issue Apr 1, 2019 · 9 comments · Fixed by #18182

Comments

@zachgk
Copy link
Contributor

zachgk commented Apr 1, 2019

Description

On the website install page, there are buttons to select the installation configuration. When you click those buttons, it changes your browser history. But, if you press the browser back button, it won't change the displayed contents or update the page to the previous configuration. For the same reason, it does not react to the forward button as well.

@mxnet-label-bot
Copy link
Contributor

Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: Doc

@zachgk
Copy link
Contributor Author

zachgk commented Apr 1, 2019

@mxnet-label-bot add [Website, Bug]

@aaronmarkham
Copy link
Contributor

@zachgk Is this still an issue on the new site?

@zachgk
Copy link
Contributor Author

zachgk commented Sep 30, 2019

@aaronmarkham This issue is still there. To reproduce,

  1. go to the installation docs on the get_started page.
  2. Randomly click on any of the buttons. Note that it changes the url path to index.html which is also wrong.
  3. If you press the browser back button, it doesn't do anything. If you press it repeatedly, it only takes effect if you press it more than the number of times you changed the installation options.

You can see the relevant code here. There are two ways to resolve this problem:

  1. We simply don't use the history api and delete all occurrences of history.pushState. Then, the back button will simply leave the get_started page.
  2. We handle the history popstate event so that presses to the back (and I believe forward) button are handled and will switch to the previously selected options. There may be other things to fix to get this working as well (especially due to the new site).

@aaronmarkham
Copy link
Contributor

Sheng fixed this on the new site.

@zachgk
Copy link
Contributor Author

zachgk commented Oct 24, 2019

I think Sheng fixed a different problem. I just checked and this problem still occurs

@zachgk zachgk reopened this Oct 24, 2019
@ys2843
Copy link
Contributor

ys2843 commented Apr 27, 2020

@aaronmarkham This bug is still reproducible on new website, can I work on this?

@ys2843
Copy link
Contributor

ys2843 commented May 28, 2020

@aaronmarkham This issue was resolved. We can close it.

@zachgk
Copy link
Contributor Author

zachgk commented May 28, 2020

Thanks @ys2843. Fixed in #18182

@zachgk zachgk closed this as completed May 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants