From 99a53cbd96786c0c618fafecf80229d0b563b39b Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sun, 25 Aug 2024 12:11:32 +0330 Subject: [PATCH] #445 search --- TajikGanjoor/Pages/Index.cshtml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TajikGanjoor/Pages/Index.cshtml.cs b/TajikGanjoor/Pages/Index.cshtml.cs index 528e8bf3..f1d5b430 100644 --- a/TajikGanjoor/Pages/Index.cshtml.cs +++ b/TajikGanjoor/Pages/Index.cshtml.cs @@ -190,6 +190,11 @@ namespace TajikGanjoor.Pages } BreadCrumpUrls = "Ганҷур"; + if (IsSearchPage) + { + ViewData["Title"] = $"Ганҷур - ҷустуҷӯ - {Query}"; + } + else if (IsHomePage) { ViewData["Title"] = "Ганҷур";