I have customized and styled the search results page search.blade.php
according to my needs. The page is loaded in the app layout and the main menu is included in the layout.
I implemented the main menu myself and check which menu items are active by comparing the URL get_permalink()
of the current page with the given menu item.
Strangely, on the search page, there is always one menu item active and get_the_ID();
returns an arbitrary page ID. Why is that? Shouldn’t the ID be false or that of the homepage?