changed redirect to use the parameter map instead of the query string