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
This issue has originally been reported by @titusvk at yiisoft/yii2#16808. Moved here by @cebe.
Bootstrap Nav Widget doesn't set active menu item status when url param has no action.
Maybe we can anticipate, the default action is index.
I'm not sure with the following solution:
protected function isItemActive($item) { if (!$this->activateItems) { return false; } if (isset($item['url']) && is_array($item['url']) && isset($item['url'][0])) { $route = $item['url'][0]; **if (strpos(ltrim($route, '/'), '/') === false) { $route .= '/index'; }**
The text was updated successfully, but these errors were encountered:
Duplicate of #209
Sorry, something went wrong.
No branches or pull requests
This issue has originally been reported by @titusvk at yiisoft/yii2#16808.
Moved here by @cebe.
What steps will reproduce the problem?
Bootstrap Nav Widget doesn't set active menu item status when url param has no action.
What is the expected result?
Maybe we can anticipate, the default action is index.
What do you get instead?
I'm not sure with the following solution:
Additional info
The text was updated successfully, but these errors were encountered: