Skip to content

Commit

Permalink
Update _SideMenu.cshtml
Browse files Browse the repository at this point in the history
  • Loading branch information
killij committed Sep 28, 2023
1 parent c0f01e4 commit e718e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Childrens-Social-Care-CPD/Views/Shared/_SideMenu.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@foreach (var menuItem in Model.Items)
{
string pageName = $"/{ViewBag.ContextModel.PageName}";
string uri = menuItem.Uri.StartsWith("/") ? menuItem.Uri : $"/{menuItem.Uri}";
string uri = menuItem.Uri.StartsWith('/') ? menuItem.Uri : $"/{menuItem.Uri}";
var css = pageName.StartsWith(uri)
? "dfe-vertical-nav__section-item dfe-vertical-nav__section-item--current"
: "dfe-vertical-nav__section-item";
Expand Down

0 comments on commit e718e3d

Please sign in to comment.