# Passing Params Into Pagination

**URL:** <https://forum.shopware.com/t/passing-params-into-pagination/85824>\
**Category:** Shopware 6 (English)\
**Created:** [9. März 2021 um 14:33 UTC](https://forum.shopware.com/t/passing-params-into-pagination/85824 "2021-03-09T14:33:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian.adel](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@sebastian.adel](https://forum.shopware.com/u/sebastian.adel)\
**Post date:** [9. März 2021 um 14:33 UTC](https://forum.shopware.com/t/passing-params-into-pagination/85824/1 "2021-03-09T14:33:18Z")

</div>

Hello everyone!

I have created a custom plugin that hooks into the way the product listing is done, offering the possibility to have two listing variants (cards & list). I’m doing so by adding a parameter to the url called listingStyle which has a specific value (list or cards). This all worked out great so far.

The problem comes when I change the page on the listing. Then this listingStyle value in the twig is lost.  
I’m thinking I should be passing this variable to the Pagination or Listing JS plugin (which I’d override). The problem is that I can’t find a way how to do this. This is where I’m stuck and out of ideas.

Did anyone of you came across such a problem? Any ideas would be much appreciated. Thanks in advance.
