supporting replaceURL on HashLocation