Hej there.
I wrote a redirector page to the parent page inside SiteTree. Works perfectly, but when "Split Mode" is enabled, and I call the page via SiteTree, the CMS jumps to the parent page.
Here ist my code:
class ParentRedirect_Controller extends ContentController
{
public function init()
{
parent::init();
if($link = $this->Parent()->Link())
{
$this->redirect($link, 301);
return;
}
}
}
This issue is not, when using the standard redirector page type. Can anyone tell me, how to avoid this jump to the parent page inside the CMS? Thanks.
-Mario-