Skip to content

Commit 6e9fc0b

Browse files
committed
fix inverted argument
1 parent 8fe6b91 commit 6e9fc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/DefaultController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function actionPage($pageId)
245245
}
246246

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

0 commit comments

Comments
 (0)