fixes #5057
Merge pull request #5058 from dotCMS/issue-5057-edit-mode-not-working-when-clicking-menu-links

fixes #5057