We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 224fa4d commit 5772488Copy full SHA for 5772488
1 file changed
app/Controller/AppController.php
@@ -533,7 +533,7 @@ public function __initSeoConfiguration()
533
$default = $this->Seo->find('first', ["conditions" => ['page' => null]])['Seo'];
534
$current_url = $this->here;
535
$get_page = [];
536
- $check = $this->Seo->find('first', ['conditions' => ["'" . $current_url . "' LIKE CONCAT(page, '%')"]]);
+ $check = max($this->Seo->find('all', ['conditions' => ["'" . $current_url . "' LIKE CONCAT(page, '%')"]]));
537
if ($check && ($check['Seo']["page"] == $current_url || $current_url != "/"))
538
$get_page = $check['Seo'];
539
$seo_config['title'] = (!empty($default['title']) ? $default['title'] : "{TITLE} - {WEBSITE_NAME}");
0 commit comments