Added handling for hashes in URL in the router