Fixed replace state abstraction when using hash urls