deal url for html mode