Skip to content

Commit

Permalink
Merge pull request #54 from dmstr/feature/fix-ref-page-return
Browse files Browse the repository at this point in the history
An return to redirect response for ref-page action
  • Loading branch information
eluhr authored Dec 8, 2023
2 parents bf5010b + 4bb85b1 commit 8fe6b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function actionRefPage($pageId)

$page = Tree::findOne(['id' => $pageId]);
if ($page && $page instanceof Tree) {
$this->redirect($page->createUrl());
return $this->redirect($page->createUrl());
} else {
throw new NotFoundHttpException();
}
Expand Down

0 comments on commit 8fe6b91

Please sign in to comment.