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.
Update resource string value of PageTitle.Search as Search {0}. Modify AddPageTitleParts as Html.AddTitleParts(string.Format(T("PageTitle.Search").Text, Model.q));
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.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.