add get_urlpath to get url path with params