RedirectorPage
class RedirectorPage extends Page
A redirector page redirects when the page is visited.
Properties
| string | $RedirectionType | Either 'Internal' or 'External' | |
| string | $ExternalURL | URL to redirect to if $RedirectionType is 'External' | |
| int | $LinkToID |
Methods
Returns this page if the redirect is external, otherwise returns the target page.
Return the the link that should be used for this redirector page, in navigation, etc.
Return the normal link directly to this page. Once you visit this link, a 30x redirection will take you to your final destination.
Return the link that we should redirect to.
No description
No description
No description
Page to link to if $RedirectionType is 'Internal'
Details
at line 51
SiteTree
ContentSource()
Returns this page if the redirect is external, otherwise returns the target page.
at line 69
string
Link(string $action = null)
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.
at line 86
string
regularLink(string $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.
at line 95
redirectionLink()
Return the link that we should redirect to.
Only return a value if there is a legal redirection destination.
at line 126
syncLinkTracking()
at line 167
getCMSFields()
at line 201
subPagesToCache()
at line 21
SiteTree
LinkTo()
Page to link to if $RedirectionType is 'Internal'