GuideReference
TrainingSupportCommunity
Reference

redirectplus

  • Property Manager name: Redirect Plus
  • Behavior version: The v2023-01-05 rule format supports the redirectplus behavior v1.2.
  • Rule format status: GA, stable
  • Access: Read/Write
  • Allowed in includes: Yes

Respond to the client request with a redirect without contacting the origin. This behavior fills the same need as redirect, but allows you to use variables to express the redirect destination's component values more concisely.

OptionTypeDescriptionRequires
enabledboolean

Enables the redirect feature.

{"displayType":"boolean","tag":"input","type":"checkbox"}
destinationstring (allows variables)

Specifies the redirect as a path expression starting with a / character relative to the current root, or as a fully qualified URL. Optionally inject variables, as in this example that refers to the original request's filename: /path/to/{{builtin.​AK_​FILENAME}}.

{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
response_​codeenum

Assigns the status code for the redirect response.

{"displayType":"enum","options":["301","302","303","307"],"tag":"select"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
Supported values:
301
302
303
307