diff --git a/wagtailmenus/templatetags/menu_tags.py b/wagtailmenus/templatetags/menu_tags.py
index <HASH>..<HASH> 100644
--- a/wagtailmenus/templatetags/menu_tags.py
+++ b/wagtailmenus/templatetags/menu_tags.py
@@ -530,14 +530,9 @@ def prime_menu_items(
                         allow_repeating_parents and use_specific and
                         has_children_in_menu
                     ):
-                        if type(page) is Page:
-                            page = page.specific
                         if getattr(page, 'repeat_in_subnav', False):
                             active_class = ACTIVE_ANCESTOR_CLASS
-                elif(
-                    page.depth >= SECTION_ROOT_DEPTH and
-                    page.pk in current_page_ancestor_ids
-                ):
+                elif page.pk in current_page_ancestor_ids:
                     active_class = ACTIVE_ANCESTOR_CLASS
                 setattr(item, 'active_class', active_class)
Don't include ids for pages above SECTION_ROOT_DEPTH in ancestor IDs, eliminating the need to check page depth in prime_menu_items