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

The menu is not open when coming to the page directly #64

Open
dunglas opened this issue Jul 20, 2018 · 3 comments
Open

The menu is not open when coming to the page directly #64

dunglas opened this issue Jul 20, 2018 · 3 comments

Comments

@dunglas
Copy link
Member

dunglas commented Jul 20, 2018

Go directly to https://api-platform.com/docs/core/filters#boolean-filter

The left menu should be open and should display the inner links. The scroll spy should work. This isn't the case.

@dunglas dunglas added this to To do in Improve the website Jul 20, 2018
@Mathieudewet
Copy link
Contributor

Seems related to #58.

@Mathieudewet
Copy link
Contributor

Mathieudewet commented Aug 2, 2018

You can test it cloning my fork git@github.com:Mathieudewet/website.git, checkout on the dev branch, where i merge several branch that fix this one.

Run :

➜  yarn
➜  bin/retrieve-documentation
➜  yarn gatsby develop

Then go to (in a private nav) http://localhost:8000/docs/core/operations#control-the-path-of-subresources for example, open the web console, click disable cache on web wonsole network nav, press ctrl+shift+f5. (Tested on chrome on linux)

The menu still have to be open at the same point than before refreshing.

@mauchede mauchede moved this from To do to Needs review in Improve the website Aug 7, 2018
@raoulclais
Copy link
Contributor

Locally it works. But on production, there are some redirections (https://api-platform.com/docs/core/filters -> http://api-platform.com/docs/core/filters/ -> https://api-platform.com/docs/core/filters/) and the added trailing slash is what causes the bug. I don't know why it redirects to http and why it adds the trailing slash. Neither of this should happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Improve the website
  
Needs review
Development

No branches or pull requests

3 participants