We’ve implemented a restrictions to show/hide collections (pages, links in menu) etc. based on customer tags. It’s a complex liquid code with lots of loops and conditional checks. It loops through collections and metaobjects.
The issue is that this liquid code is not functional when there’s a query param in url, like “collections/all?page=2”