Search page meta Title

6 months ago
Hello,

How to get the search terms to the meta Title?
The default title is "Search" in Html.AddTitleParts(T("PageTitle.Search").Text)
I want to make it as "Search ABC" in the title, "ABC" is the search terms.

Nop.V4.2

Thank you
Z
6 months ago
Update resource string value of PageTitle.Search as Search {0}. Modify AddPageTitleParts as Html.AddTitleParts(string.Format(T("PageTitle.Search").Text, Model.q));
6 months ago
mhsjaber wrote:
Update resource string value of PageTitle.Search as Search {0}. Modify AddPageTitleParts as Html.AddTitleParts(string.Format(T("PageTitle.Search").Text, Model.q));


It works.
Thank you very much.