Only refresh url#anchor if url contains a hash/anchor