Handle case of multiple hashes in url