[Skip to main content](#vessel-content)

#   Filters URL - weird reset

##

- **[philament](/forum/user/58296-philament "View philament's Profile")**
- [![philament's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58296-philament "View philament's Profile") Topic Author
- [ Offline](/forum/user/58296-philament)

Less More

- Posts: 46
- Thank you received: 2
-
-

6 years 2 months ago -  6 years 2 months ago [\#324081](#324081) by [philament](/forum/user/58296-philament "View philament's Profile")  *[Filters URL - weird reset](/forum/45-filters-search/900827-filters-url-weird-reset#324081 "-- HikaShop version -- : 4.3 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.3.22  Hello, I use 2 different filter modules. Each of these 2 pages has its filter module. Each module calls a different filter and a different menu redirect as well. After a choice in a filter you can &quot;reinitialize&quot; the filter. After doing that, here are the URLs that are displayed: 1)   www.mysite.com/accessoires.html?limitsta...es&#95;1=&amp;filter&#95;Size&#95;7=  2)   www.mysite.com/boutique.html?filter&#95;Cate...es&#95;1=&amp;filter&#95;Size&#95;7=  Strange thing, I notice in the url the name of the 2 filters activated from the Hika backend. &quot;Size&#95;7&quot; and &quot;Categories&#95;1&quot; Why are the end of these 2 URLs the same?  Besides, if I publish a third filter (Size&#95;3), without using it, well it is added to the URL:   www.mysite.com/boutique.html?filter&#95;Cate...ze&#95;3=&amp;filter&#95;Size&#95;7=  how to get more friendly urls with filters? Should I use a 301 redirect?  edit: I am currently subscribing to the &quot;categories&#95;1&quot; filter because it is irrelevant. I keep the second &quot;Size&#95;7&quot; Wood species. the &quot;reiniatilsation&quot; button generates a new URL  Thank you in advance for your advice")* was created by *[philament](/forum/user/58296-philament "View philament's Profile")*

-- HikaShop version -- : 4.3
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.3.22

Hello,
I use 2 different filter modules. Each of these 2 pages has its filter module.
Each module calls a different filter and a different menu redirect as well.
After a choice in a filter you can "reinitialize" the filter. After doing that, here are the URLs that are displayed:
1) [ www.mysite.com/accessoires.html?limitsta...es\_1=&amp;filter\_Size\_7=](https://www.mysite.com/accessoires.html?limitstart=0&filter_Categories_1=&filter_Size_7=)
2) [ www.mysite.com/boutique.html?filter\_Cate...es\_1=&amp;filter\_Size\_7=](https://www.mysite.com/boutique.html?filter_Categories_1=&filter_Size_7=)

Strange thing, I notice in the url the name of the 2 filters activated from the Hika backend. "Size_7" and "Categories_1"
Why are the end of these 2 URLs the same?

Besides, if I publish a third filter (Size_3), without using it, well it is added to the URL:
[ www.mysite.com/boutique.html?filter\_Cate...ze\_3=&amp;filter\_Size\_7=](https://www.mysite.com/boutique.html?filter_Categories_1=&filter_Size_3=&filter_Size_7=)

how to get more friendly urls with filters?
Should I use a 301 redirect?

edit:
I am currently subscribing to the "categories_1" filter because it is irrelevant. I keep the second "Size_7" Wood species.
the "reiniatilsation" button generates a new URL

Thank you in advance for your advice

Last edit: 6 years 2 months ago by [philament](/forum/user/58296-philament "View philament's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzkwMDgyNy1maWx0ZXJzLXVybC13ZWlyZC1yZXNldD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

6 years 2 months ago [\#324095](#324095) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filters URL - weird reset](/forum/45-filters-search/900827-filters-url-weird-reset#324095 "-- HikaShop version -- : 4.3 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.3.22  Hello, I use 2 different filter modules. Each of these 2 pages has its filter module. Each module calls a different filter and a different menu redirect as well. After a choice in a filter you can &quot;reinitialize&quot; the filter. After doing that, here are the URLs that are displayed: 1)   www.mysite.com/accessoires.html?limitsta...es&#95;1=&amp;filter&#95;Size&#95;7=  2)   www.mysite.com/boutique.html?filter&#95;Cate...es&#95;1=&amp;filter&#95;Size&#95;7=  Strange thing, I notice in the url the name of the 2 filters activated from the Hika backend. &quot;Size&#95;7&quot; and &quot;Categories&#95;1&quot; Why are the end of these 2 URLs the same?  Besides, if I publish a third filter (Size&#95;3), without using it, well it is added to the URL:   www.mysite.com/boutique.html?filter&#95;Cate...ze&#95;3=&amp;filter&#95;Size&#95;7=  how to get more friendly urls with filters? Should I use a 301 redirect?  edit: I am currently subscribing to the &quot;categories&#95;1&quot; filter because it is irrelevant. I keep the second &quot;Size&#95;7&quot; Wood species. the &quot;reiniatilsation&quot; button generates a new URL  Thank you in advance for your advice")*

Hi,

The URL for the reset includes the default value of all the filters. The fitler system doesn't know where you're coming when it does the reset so it adds all the filters in the URL to make sure that all of them are reset.

Regarding the name of the parameters in the URL, the system uses the namekey of the filters. So you could change the namekey of the filters in the hikashop_filter table in your database via PHPMyAdmin to have then how you want.
Note that each filter must have a unique namekey, not used by other filters for the system to work properly.

The following user(s) said Thank You: [philament](/forum/user/58296-philament "View philament's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzkwMDgyNy1maWx0ZXJzLXVybC13ZWlyZC1yZXNldD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
