diff --git a/src/resources/views/base/inc/sidebar.blade.php b/src/resources/views/base/inc/sidebar.blade.php index 60ece0a68e..5daf0653a2 100644 --- a/src/resources/views/base/inc/sidebar.blade.php +++ b/src/resources/views/base/inc/sidebar.blade.php @@ -58,11 +58,11 @@ function() { return $(this).attr('href') === full_url; } // If not found, look for the link that starts with the url if(!$curentPageLink.length > 0){ $curentPageLink = $navLinks.filter( function() { - if ($(this).attr('href').startsWith(full_url)) { + if ($(this).attr('href').split('?')[0] === full_url) { return true; } - if (full_url.startsWith($(this).attr('href'))) { + if (full_url.split('?')[0] === $(this).attr('href')) { return true; }