class RedirectorPage extends Page (View source)

A redirector page redirects when the page is visited.

Methods

ContentSource()

Returns this page if the redirect is external, otherwise returns the target page.

null|string
Link(null $action = null)

Return the the link that should be used for this redirector page, in navigation, etc.

regularLink($action = null)

Return the normal link directly to this page. Once you visit this link, a 30x redirection will take you to your final destination.

redirectionLink()

Return the link that we should redirect to.

syncLinkTracking()

No description

onBeforeWrite()

No description

getCMSFields()

No description

subPagesToCache()

No description

Details

SiteTree ContentSource()

Returns this page if the redirect is external, otherwise returns the target page.

Return Value

SiteTree

Return the the link that should be used for this redirector page, in navigation, etc.

If the redirectorpage has been appropriately configured, then it will return the redirection destination, to prevent unnecessary 30x redirections. However, if it's misconfigured, then it will return a link to itself, which will then display an error message.

Parameters

null $action

Return Value

null|string

Return the normal link directly to this page. Once you visit this link, a 30x redirection will take you to your final destination.

Parameters

$action

Return the link that we should redirect to.

Only return a value if there is a legal redirection destination.

syncLinkTracking()

onBeforeWrite()

getCMSFields()

subPagesToCache()