Sets a custom HTTP status code for the redirect response
HTTP status code to use (e.g., 301, 302, 307)
The Redirect instance for method chaining
Clears any query string values previously added using the withQs method
The Redirect instance for method chaining
Forwards the current request's query string to the redirect URL
Use this overload when you want to preserve all existing query parameters from the current request in the redirect URL.
The Redirect instance for method chaining
Adds multiple query string parameters to the redirect URL
Use this overload when you want to add several query parameters at once using an object with key-value pairs.
Object containing query parameter names and values
The Redirect instance for method chaining
Adds a single query string parameter to the redirect URL
Use this overload when you want to add just one query parameter with a specific name and value.
The query parameter name
The query parameter value
The Redirect instance for method chaining
Redirects to the previous path using the Referer header Falls back to '/' if no referrer is found
Redirects to a route using its identifier (name, pattern, or handler reference)
Route identifier, parameters, and options for URL building
Redirects to a specific URL path
Target URL path for redirection
Exposes the API to construct redirect routes