We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If we are on some page the selected-current-link in menu should have "selected" class but it doesn't work
$this->Menus->menu('main', [ 'dropdown' => true, 'selected' => 'selected', 'dropdownClass' => 'navbar-nav ml-auto', 'subTagAttributes' => [ 'class' => 'nav-item', ], 'linkAttributes' => [ 'class' => 'nav-link js-scroll-trigger', ], ]);
The text was updated successfully, but these errors were encountered:
If I change - MenusHelper line: 293
if (Router::url($link->link->getUrl()) == Router::url('/' . $currentUrl)) {
to
if (Router::url($link->link->getUrl()) == Router::url($currentUrl)) {
it works
System: "Windows 10"
Sorry, something went wrong.
Similar to #995 ?
No branches or pull requests
If we are on some page the selected-current-link in menu should have "selected" class
but it doesn't work
The text was updated successfully, but these errors were encountered: