keithmancuso / craft-menus

A simple but powerful menus plugin for Craft CMS built with a custom element type
51 stars 10 forks source link

getActive() false positives fix #11

Closed CavenRE closed 1 year ago

CavenRE commented 9 years ago

Made this change due to false positives I was getting on my project where homepage was always set to active.

screen shot 2015-10-01 at 11 10 44 pm

This issue occurs when you land on the index page of channels and you are using a single as the custom index. With the quick fix, you will no longer get false positive on homepage and will no longer show as active regardless of where you are in the site in the menu.

screen shot 2015-10-01 at 11 11 26 pm

It is a quick fix for now, if you like, I can create a more comprehensive fix that will cover all the bases, just let me know.