Skip to content

Commit

Permalink
Merge pull request #59 from ministryofjustice/dp-3284
Browse files Browse the repository at this point in the history
Resolve issue with Page Title displaying incorrect information
  • Loading branch information
mitchdawson1982 authored Feb 12, 2024
2 parents 1fd0ff1 + 8db01d1 commit 851be05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/service/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def _get_paginator(self, items_per_page: int) -> Paginator:

def _get_context(self) -> dict[str, Any]:

if self.form["query"].value:
page_title = f'Search for "{self.form["query"].value}" - Data catalogue'
if self.form["query"].value():
page_title = f'Search for "{self.form["query"].value()}" - Data catalogue'
else:
page_title = "Search - Data catalogue"

Expand Down

0 comments on commit 851be05

Please sign in to comment.