Skip to content

Commit d11288f

Browse files
committed
Add search query to title of page
1 parent 54743c2 commit d11288f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/templates/Packet/Search.phtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ $title = "Search Packets";
1111
$description = "Search the packets on BNETDocs";
1212
$this->opengraph->attach(new Pair("url", "/packet/search"));
1313

14+
if (!empty($this->getContext()->query)) {
15+
$title = $this->getContext()->query . " - " . $title;
16+
}
17+
1418
$avatars = [];
1519
$getAvatar = function(&$avatars, &$user) {
1620
$user_id = $user->getId();

0 commit comments

Comments
 (0)