PlugRedirect v1.0.0 Plug.Redirect View Source

A plug builder for redirecting requests.

Link to this section Summary

Link to this section Functions

Link to this macro redirect(from, to, options \\ [status: 301]) View Source (macro)

Specify a redirect.

The first argument is the request to match upon for the redirect.

The second argument is the location to redirect the request to.

Options

  • :status - The HTTP status code to use for the redirect.