Skip to content

Commit 013fa4f

Browse files
Warren Buckleyronaldbarendse
andauthored
Update Our.Umbraco.TagHelpers/IsActivePageTagHelper.cs
Co-authored-by: Ronald Barendse <[email protected]>
1 parent 15a8c0e commit 013fa4f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Our.Umbraco.TagHelpers/IsActivePageTagHelper.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
3333
{
3434
// Remove the attribute
3535
// We don't want it in the markup we send down to the page
36-
if(output.Attributes.TryGetAttribute("our-is-active-page", out TagHelperAttribute tagHelperAttr))
37-
{
38-
output.Attributes.Remove(tagHelperAttr);
39-
}
36+
output.Attributes.RemoveAll("our-is-active-page");
4037

4138
var ctx = _umbracoContextAccessor.GetRequiredUmbracoContext();
4239

0 commit comments

Comments
 (0)