NXIO-287 use sprintf to manually generate redirect URL (to avoid port inclusion)