Skip to content

Commit

Permalink
fix inverted argument
Browse files Browse the repository at this point in the history
  • Loading branch information
eluhr committed Dec 8, 2023
1 parent 8fe6b91 commit 6e9fc0b
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 @@ -245,7 +245,7 @@ public function actionPage($pageId)
}

// if the route of the $page does not point to $this->route, make a redirect to the destination url
if ($page !== null && ltrim('/', $page->route) !== $this->route) {
if ($page !== null && ltrim($page->route, '/') !== $this->route) {
$destRoute = [$page->route];
if (!empty($page->request_params) && Json::decode($page->request_params)) {
$destRoute = ArrayHelper::merge($destRoute, Json::decode($page->request_params));
Expand Down

1 comment on commit 6e9fc0b

@handcode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eluhr Thanks!

Please sign in to comment.