website
website copied to clipboard
The menu is not open when coming to the page directly
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.
Seems related to https://github.com/api-platform/website/issues/58.
You can test it cloning my fork [email protected]: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.
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.