remove trailing slash when queryparams applied