Skip to content
New issue

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

Bug in menu helper - selected class not being added to current nav link #995

Open
slightlychilled opened this issue Jan 21, 2021 · 0 comments
Labels

Comments

@slightlychilled
Copy link

in previous MenuHelper (this works):

Line 261:
// Remove locale part before comparing links
if ($this->_View->request->param('locale')) {
$currentUrl = substr($this->_View->request->url, strlen($this->_View->request->param('locale') . '/'));
} else {
$currentUrl = $this->_View->request->url;
}

In Latest MenuHelper (this does not work):
Line 285:

// Remove locale part before comparing links
if ($this->getView()->getRequest()->getParam('locale')) {
$currentUrl = substr($this->getView()->getRequest()->getPath(), strlen($this->getView()->getRequest()->getParam('locale') . '/'));
} else {
$currentUrl = $this->getView()->getRequest()->getPath();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants