website icon indicating copy to clipboard operation
website copied to clipboard

The menu is not open when coming to the page directly

Open dunglas opened this issue 6 years ago • 3 comments

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 avatar Jul 20 '18 10:07 dunglas

Seems related to https://github.com/api-platform/website/issues/58.

Mathieudewet avatar Aug 01 '18 11:08 Mathieudewet

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.

Mathieudewet avatar Aug 02 '18 14:08 Mathieudewet

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.

raoulclais avatar Jan 03 '19 14:01 raoulclais