I have observed the problem when using redirect rules
Here is the redirect rules. It opens the page on live .(http://example.com/mypage/profile/)
On stage redirected to login page http://example.com/mypage/profile/?stage=Stage
Director::addRules(100, array(
'mypage/profile//$Action/$ID' => 'ProfilePage_Controller',
'mypage/profile//' => 'ProfilePage_Controller',
'myprofile' => 'ProfilePage_Controller',
));
I traced the code where it gets Permission Failure
if(!$this->dataRecord->canViewStage(Versioned::current_archived_date() ? 'Stage' : Versioned::current_stage())) {
Line:122 cms/code/controllers/ContentController.php
Do I need to set permission to view on Stage?
Thanks
B L Praveen