From 7800987477af7521b2ec6b410b62a8cbc3a98d0b Mon Sep 17 00:00:00 2001 From: swapnamol-abraham Date: Fri, 21 Nov 2025 13:16:58 +0000 Subject: [PATCH] TD-6595: About Page Not Opening in LH Catalogues --- LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml b/LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml index 684da02e..b8f376db 100644 --- a/LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml @@ -54,12 +54,16 @@ return "Resources"; } } - if (Model.Catalogue.SelectedCategoryId == 0 || - (Model.Catalogue.SelectedCategoryId > 0 && - (Model.Courses == null || !Model.Courses.Any()) && - (Model.SubCategories == null || !Model.SubCategories.Any()))) + + if (ViewBag.ActiveTab == "Courses") { - ViewBag.ActiveTab = "browse"; + if (Model.Catalogue.SelectedCategoryId == 0 || + (Model.Catalogue.SelectedCategoryId > 0 && + (Model.Courses == null || !Model.Courses.Any()) && + (Model.SubCategories == null || !Model.SubCategories.Any()))) + { + ViewBag.ActiveTab = "browse"; + } } List<(string Title, string Url)> breadcrumbs;