Skip to content

Commit edc6b74

Browse files
committed
[spalenque] - #13963 * replace page title with meta tag title on every page
1 parent 3cdc0ba commit edc6b74

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

openstack/code/Page.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,15 @@ public function MetaTags()
566566
return $tags;
567567
}
568568

569+
public function getPageTitle()
570+
{
571+
if ($this->MetaTitle) {
572+
return $this->MetaTitle;
573+
} else {
574+
return parent::getTitle(). ' - OpenStack is open source software for creating private and public clouds.';
575+
}
576+
}
577+
569578
public function showUpdateProfileModal(){
570579
return (Member::currentUser() && Session::get("Member.showUpdateProfileModal"));
571580
}

themes/openstack/templates/Page.ss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta http-equiv="X-UA-Compatible" content="IE=edge">
99
<meta name="viewport" content="width=device-width, initial-scale=1">
1010
<meta name="globalsign-domain-verification" content="tWFOHNAA_WMHmHfBMq38uTgupHFugV_dZ2rqyRxNMx" />
11-
<title>$Title - OpenStack is open source software for creating private and public clouds.</title>
11+
<title>$getPageTitle()</title>
1212

1313
$MetaTags(false)
1414

0 commit comments

Comments
 (0)