RunDMC
RunDMC copied to clipboard
back button handling is incorrect
I often find that hitting the back button in the browser does not display the page I went back to. I end up having to reload the page to get the proper display. My impression is that it is related to intra-page jumps. I am using Chrome on Windows.
Here is one way to reproduce this behavior (hopefully!). I have intentionally not included any links because the problem is very much tangled up with navigating through the doc app.
- Go to the Guides section on docs.marklogic.com.
- Use the left nav control to open the first page of some guide chapter. For example, find the semantics dev guide and click on "Loading Semantic Triples" in the nav control.
- Click on one of the sub-topic links on the resulting guide page. For example, click on "Loading Triples" on the page. You're now viewing a topic with a URL that includes a named anchor.
- Click on another chapter in the nav control.
- Hit the browser back button. Now, the URL is the one with the named anchor, but the displayed content is unchanged from the previous step.
Below is the Chrome dev tools console. There's an error there from the nav control, but it occurs as soon as you go to the Guides section of docs.marklogic.com, and happens all the time. The "scrollIntoView" message, which presumably is some debug output, occurs when you hit the back button.
I've no reason to think this is related to the recent jsdoc issue we've been discussing, though it is probably the same code at work. I just thought I'd file this because you seemed surprised to hear back doesn't always redisplay.