Oh, I understood it the other way around.
You can definitely revert the piece of code I shared with you.
Here, the issue is that you want to use the same search page, but with a different behavior depending on the URL it comes from.
This is definitely not something we’d recommend, as it can easily be confusing for users to get a non-explicit behavior.
What happens if someone shares the URL afterwards? Should it show it display with Algolia, or use the same layout as the one the user saw?
What we usually recommend when you use the Community feature of a Zendesk Help Center, is to simply disable the instant search. As a result, users have Algolia for a quick access, but can still press Enter to find community topics.
This is easily done
instantsearch.enabled (see our documentation):
subdomain: 'XXX', // <- Don't forget to add a comma at the end of this line