Closed mordae closed 7 years ago
When I navigate to the longer of the following two routes, both are considered active:
/test/hello /test/hello-and-bye
Is this by design or mistake?
It's a default behavior (see https://github.com/inveniosoftware/flask-menu/blob/master/flask_menu/__init__.py#L89-L95). You can provide custom active_when method that compares only endpoint names.
active_when
When I navigate to the longer of the following two routes, both are considered active:
Is this by design or mistake?