refine url by using html5Mode