From bc220f8d72ee19291b8d457cf311159e80e28a96 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 5 Oct 2022 17:30:55 +0100 Subject: [PATCH] MDL-75903 output: increase precision of primary active node matching. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mikel Martín --- lib/classes/navigation/views/primary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/navigation/views/primary.php b/lib/classes/navigation/views/primary.php index 3b28e4c6cf0..8ab91247fd2 100644 --- a/lib/classes/navigation/views/primary.php +++ b/lib/classes/navigation/views/primary.php @@ -161,7 +161,7 @@ class primary extends view { if ($node->key && ($activekey === $node->key)) { return $node; } - } else if ($node->check_if_active(URL_MATCH_BASE)) { + } else if ($node->check_if_active(URL_MATCH_EXACT)) { return $node; }