add hash location, fix refresh of dynamic segments in the url