Hi, I’ve run into an issue when trying to use the search-menu-results-top connector slot for customisation. The slot does not appear to be correctly places at the top of the results (notice that the “Try asking…” call to action is below the results):
As you have pointed out, the search-menu-results-top plugin outlet was not positioned at the top of results as expected.
Additionally, we have recently upgraded the search menu and its internals to rely on Glimmer. You are not seeing @outletArgs.searchTerm as it was not included (unintentionally) in the search-menu-results-top plugin outlet, attached to the glimmer search menu.
The GitHub - discourse/discourse-search-banner is now built upon the glimmer search menu which is why I made the changes there instead of the widget search menu. Additionally, we will be rolling the glimmer search menu out as the new default for all discourse instances in the next month so to take advantage of the changes I have linked (and get one step ahead of the crowd) I would recommend enabling the glimmer search menu on your site. This will solve any issues you are having in the search menu located in the navigation bar.
You can do so by adding a group to the experimental search menu groups site setting. We currently have this enabled for “everyone” on meta.