diff --git a/apps/block_scout_web/assets/js/lib/awesomplete-util.js b/apps/block_scout_web/assets/js/lib/awesomplete-util.js index bb13499228..bcfb7edc88 100644 --- a/apps/block_scout_web/assets/js/lib/awesomplete-util.js +++ b/apps/block_scout_web/assets/js/lib/awesomplete-util.js @@ -147,6 +147,8 @@ window.AwesompleteUtil = (function () { var awe = this awe.utilprops.changed = true // yes, user made a change awe.utilprops.selected = ev.text // Suggestion object + const address = ev.text.split(/

/)[0] + window.open(`/search?q=${address}`, '_self') } // check if the object is empty {} object