Problem/Motivation
I found an issue with the admin tool bar search results where when clicking the autocomplete result, the links are opening twice.
Steps to reproduce
Adding a simplyTest.me video for reference.
Proposed resolution
TO fix the issue i did the below:
Before :
.append('<div ><a href="' + item.value + '" onclick="window.open(this.href); return false;" >' + item.labelRaw + ' <span class="admin-toolbar-search-url">' + item.value + '</span></a></div>')
After :
.append('<div ><a href="' + item.value + '" onclick="window.open(this.href, _self); return false;" >' + item.labelRaw + ' <span class="admin-toolbar-search-url">' + item.value + '</span></a></div>')
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
vakulrai commentedComment #3
vakulrai commentedAdding a patch to fix the issue , this is definitely can be made configurable but to start off i am adding it so that others facing the same can use it.
Thanks
Comment #4
vakulrai commentedComment #5
dydave commentedThank you very much Vakul (@vakulrai) for reporting this issue and contributing a patch, it's greatly appreciated! 🙏
The Admin Toolbar Search module's Javascript has been completely refactored in the latest release and this issue should have been Fixed as part of the latest changes.
Could you please try testing the latest release 3.6.3 and let us know if the problem still persists?
This issue was initially reported for the 3.4.2 release, so it is a bit outdated now....
Marking as Closed (outdated), for now.
Thanks again very much for your help and interest in the Admin Toolbar module! 😊