Searchbar doesn't work after route to another page and back

Supposing I have the .searchbar componenet on my index page and I route to a different page and back, and the url looks like http://127.0.0.1:5500/platforms/browser/www/#/home/, when i click on the searchbar again, it doesn’t work again. Any help to fix this please?

Ok, I have tweaked my way through, i just leveraged on the page:afterin method to re-initialise the searchbar component and that worked.