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

#   Form resbumission on back button click

##

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

Less More

- Posts: 36
- Thank you received: 0
-
-

8 years 8 months ago -  8 years 8 months ago [\#289874](#289874) by [svanschu](/forum/user/32672-svanschu "View svanschu's Profile")  *[Form resbumission on back button click](/forum/45-filters-search/894166-form-resbumission-on-back-button-click#289874 "-- url of the page with the problem -- : dev.rosenschule.de -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6.34 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Confirm Form resubmission  Hello!  When pressing the back button of the browser on a product page after i got there from a filtered listing, the browser asks me to resubmit the filter form. I am aware of topic and the config option to redirect POST requests. The problem on my page is the large number of custom fields which are used for filtering. Putting them all into the url works for a few requests, but that breaks eventually with Error 414 Request-URI too long. (steps to reproduce: Filter on more than one field, then remove one of the filters. that produces an URL longer than 2000 characters after a few repeated tries). At the moment i use a on site back button but would like the user to be able to use the browser back button too.  Reply or send a PM and i will send you the login credentials for the site.  Thanks for any advice, svanschu")* was created by *[svanschu](/forum/user/32672-svanschu "View svanschu's Profile")*

-- url of the page with the problem -- : dev.rosenschule.de
-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.6
-- PHP version -- : 5.6.34
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : Confirm Form resubmission

Hello!

When pressing the back button of the browser on a product page after i got there from a filtered listing, the browser asks me to resubmit the filter form.
I am aware of [ this](https://www.hikashop.com/forum/4-how-to/69616-confirm-form-resubmission.html) topic and the config option to redirect POST requests.
The problem on my page is the large number of custom fields which are used for filtering. Putting them all into the url works for a few requests, but that breaks eventually with Error 414 Request-URI too long. (steps to reproduce: Filter on more than one field, then remove one of the filters. that produces an URL longer than 2000 characters after a few repeated tries).
At the moment i use a on site back button but would like the user to be able to use the browser back button too.

Reply or send a PM and i will send you the login credentials for the site.

Thanks for any advice,
svanschu

Last edit: 8 years 8 months ago by [svanschu](/forum/user/32672-svanschu "View svanschu's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5NDE2Ni1mb3JtLXJlc2J1bWlzc2lvbi1vbi1iYWNrLWJ1dHRvbi1jbGljaz90bXBsPW1hcmtkb3du) 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
-
-

8 years 8 months ago [\#289899](#289899) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Form resbumission on back button click](/forum/45-filters-search/894166-form-resbumission-on-back-button-click#289899 "-- url of the page with the problem -- : dev.rosenschule.de -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6.34 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Confirm Form resubmission  Hello!  When pressing the back button of the browser on a product page after i got there from a filtered listing, the browser asks me to resubmit the filter form. I am aware of topic and the config option to redirect POST requests. The problem on my page is the large number of custom fields which are used for filtering. Putting them all into the url works for a few requests, but that breaks eventually with Error 414 Request-URI too long. (steps to reproduce: Filter on more than one field, then remove one of the filters. that produces an URL longer than 2000 characters after a few repeated tries). At the moment i use a on site back button but would like the user to be able to use the browser back button too.  Reply or send a PM and i will send you the login credentials for the site.  Thanks for any advice, svanschu")*

Hi,

Indeed, to avoid that, turning on the "redirect POST mode" setting is the solution I would recommend.
However, the URL shouldn't grow that much. I would need to look at the issue on the website to assess whether it's a problem with the number of parameters or if there is a bug and something can be done in the code.

You can send the access via our contact form along with a link to this thread:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5NDE2Ni1mb3JtLXJlc2J1bWlzc2lvbi1vbi1iYWNrLWJ1dHRvbi1jbGljaz90bXBsPW1hcmtkb3du) 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
-
-

8 years 8 months ago [\#289941](#289941) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Form resbumission on back button click](/forum/45-filters-search/894166-form-resbumission-on-back-button-click#289941 "-- url of the page with the problem -- : dev.rosenschule.de -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6.34 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Confirm Form resubmission  Hello!  When pressing the back button of the browser on a product page after i got there from a filtered listing, the browser asks me to resubmit the filter form. I am aware of topic and the config option to redirect POST requests. The problem on my page is the large number of custom fields which are used for filtering. Putting them all into the url works for a few requests, but that breaks eventually with Error 414 Request-URI too long. (steps to reproduce: Filter on more than one field, then remove one of the filters. that produces an URL longer than 2000 characters after a few repeated tries). At the moment i use a on site back button but would like the user to be able to use the browser back button too.  Reply or send a PM and i will send you the login credentials for the site.  Thanks for any advice, svanschu")*

Hi,

That looks like a bug. Try changing the option "Server current URL mode" of the HikaShop configuration. Your server might have a strange setup.
If that doesn't help, we'll need a backend and FTP access to be able to do some debugging.

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

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

Less More

- Posts: 36
- Thank you received: 0
-
-

8 years 8 months ago [\#289981](#289981) by [svanschu](/forum/user/32672-svanschu "View svanschu's Profile")  Replied by *[svanschu](/forum/user/32672-svanschu "View svanschu's Profile")* on topic *[Form resbumission on back button click](/forum/45-filters-search/894166-form-resbumission-on-back-button-click#289981 "-- url of the page with the problem -- : dev.rosenschule.de -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6.34 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Confirm Form resubmission  Hello!  When pressing the back button of the browser on a product page after i got there from a filtered listing, the browser asks me to resubmit the filter form. I am aware of topic and the config option to redirect POST requests. The problem on my page is the large number of custom fields which are used for filtering. Putting them all into the url works for a few requests, but that breaks eventually with Error 414 Request-URI too long. (steps to reproduce: Filter on more than one field, then remove one of the filters. that produces an URL longer than 2000 characters after a few repeated tries). At the moment i use a on site back button but would like the user to be able to use the browser back button too.  Reply or send a PM and i will send you the login credentials for the site.  Thanks for any advice, svanschu")*

Hi nicolas,

Changing Server current URL Mode from REDIRECT_URL to REQUEST_URI seems to have solved the problem. Thank you!

Also, just fyi, when leaving the setting on REDIRECT_URL each change in the filter form seems to append all fields to the current URL, including all previous filter settings.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5NDE2Ni1mb3JtLXJlc2J1bWlzc2lvbi1vbi1iYWNrLWJ1dHRvbi1jbGljaz90bXBsPW1hcmtkb3du) 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
-
-

8 years 8 months ago [\#289982](#289982) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Form resbumission on back button click](/forum/45-filters-search/894166-form-resbumission-on-back-button-click#289982 "-- url of the page with the problem -- : dev.rosenschule.de -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6.34 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Confirm Form resubmission  Hello!  When pressing the back button of the browser on a product page after i got there from a filtered listing, the browser asks me to resubmit the filter form. I am aware of topic and the config option to redirect POST requests. The problem on my page is the large number of custom fields which are used for filtering. Putting them all into the url works for a few requests, but that breaks eventually with Error 414 Request-URI too long. (steps to reproduce: Filter on more than one field, then remove one of the filters. that produces an URL longer than 2000 characters after a few repeated tries). At the moment i use a on site back button but would like the user to be able to use the browser back button too.  Reply or send a PM and i will send you the login credentials for the site.  Thanks for any advice, svanschu")*

Hi,

The default value of that option is REQUEST_URI. So you must have changed it for some reason.
This option should only be changed if you have issues with the URLs similar to the one you had, which indicates that your server doesn't support properly the mode selected in the option.
In 98% of the cases, REQUEST_URI is what is supported and what should be selected.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5NDE2Ni1mb3JtLXJlc2J1bWlzc2lvbi1vbi1iYWNrLWJ1dHRvbi1jbGljaz90bXBsPW1hcmtkb3du) 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.057 seconds

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