I don't think that we should use the view class name to detect whether this menu should behave as active on. (Example: An app uses some imported views without subclassing.) The menu class itself has to define this. What we can do is to scan the url pattern names in a given namespace.