Pagecontainer: Record allowSamePageTransition in urlHistory

Closes gh-7614
Fixes gh-7586