Filtering entries by multiple URL parameters on the front end
You need to get each parameter from the URL separately and repeat the steps you already did for "collection":


Get search parameters from the URL query string
Find categories that match the slugs in your query string
And merge them into the relationParam array.