wms: fix redirected requests