Admin toolbar search : The autocomplete links onclick js method opening the link in same + new window as well..

Created on 27 October 2023, about 1 year ago

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

📌 Task
Status

Active

Version

3.4

Component

Code

Created by

🇮🇳India vakulrai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024