SilverStripe\CMS\Model\SiteTree::RelativeLink
Return the link for this {@link SiteTree} object relative to the SilverStripe root.
By default, if this page is the current home page, and there is no action specified then this will return a link to the root of the site. However, if you set the $action parameter to TRUE then the link will not be rewritten and returned in its full form.
Signature
public function RelativeLink([string
$action = NULL] )
Parameters
$action
— string- See {@link Link()}
Returns
- string