Replace URL state when coming from a bad URL