Add browser title for most items on the member menu

This commit is contained in:
Kijin Sung 2025-03-09 20:41:13 +09:00
parent e072ba0391
commit f6a9d49db1
4 changed files with 40 additions and 1 deletions

View file

@ -848,10 +848,15 @@ class ModuleHandler extends Handler
$seo_title = config('seo.subpage_title') ?: '$SITE_TITLE - $SUBPAGE_TITLE';
}
$seo_title = Context::replaceUserLang($seo_title);
$subpage_title = $module_info->browser_title;
if (in_array($module_info->module, ['member']))
{
$subpage_title = '';
}
Context::setBrowserTitle($seo_title, array(
'site_title' => Context::getSiteTitle(),
'site_subtitle' => Context::getSiteSubtitle(),
'subpage_title' => $module_info->browser_title,
'subpage_title' => $subpage_title,
'page' => Context::get('page') ?: 1,
));