We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fe6b91 commit 6e9fc0bCopy full SHA for 6e9fc0b
controllers/DefaultController.php
@@ -245,7 +245,7 @@ public function actionPage($pageId)
245
}
246
247
// 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) {
+ if ($page !== null && ltrim($page->route, '/') !== $this->route) {
249
$destRoute = [$page->route];
250
if (!empty($page->request_params) && Json::decode($page->request_params)) {
251
$destRoute = ArrayHelper::merge($destRoute, Json::decode($page->request_params));
0 commit comments