Keep the location-hash until the layout is changed.