Set scrollBehavior = browser or scrollToTop.
Open page A.
Scroll down.
Click on link to page B.
Expected: window is scrolled to top.
Actual: scroll position has not changed, as if scrollBehavior was none.
The reason for this is this check in ScrollContext:
if (behavior && position)
behavior.updateScrollPosition(position, actionType);
}
It is wrong because even if we don't have a stored position, we must still let behavior handle it.
Behavior might not care about stored position at all — e.g. it might want to just scroll up.