While the patch I referenced in my previous post was an underlying factor, it was not the ultimate cause of the issue. In the end, it was caused by the fix for:
Code:
Fixed Bug: same-page section links don't jump on click
Since the May 2017 patch, only the section link in the browser address bar would work. If a link was on the current page that linked to a section on the current page, clicking that link was not working.
The fix for that issue shipped in 4.0.21 and introduced a timing bug, where the section link in the browser address bar would no longer jump to the correct section if the browser onload event had already been triggered before the Javascript which queued the jump to the onload event.
This is now fixed in the next release of 4.0.x and the next build of 4.1.x.
If you are using the unminified Javascript, in
vault/resources/js/section.js, find:
Code:
Y.on("load", function(e) {
fn(true);
});
Replace with:
Code:
if (document.readyState == "complete")
{
fn(true);
}
else
{
Y.on("load", function(e) {
fn(true);
});
}