Hash change compatibility for client routing

There are known issues with calling the handler twice.