Pass geoserver variable to map download to avoid incorrect redirection