map:redirect-to

Executes either an HTTP redirect or an internal Cocoon redirect. Evaluation of the sitemap ends here.

Since Cocoon version: 2.0

Attributes

Name

Description

resource, target

Deprecated! Redirects to a resource, use map:call instead.

uri

Required, URL to redirect to. Use 'cocoon:' for internal redirects.

session

Assures a session exists before redirecting. Default: false.

global

Useful to force redirect when inside a nested environment (a pipeline called using 'cocoon:', map:aggregate). Default: false.

permanent

Indicates the resource has permanently moved (sets HTTP response code 301). Default: false.

Occurence

Children

This element can have the following children:

(none)

Parents

This element can occur inside:

map:view
map:resource
map:match
map:when
map:otherwise
map:act

Comments (0)