[Use category layouts that include the fix] Post-redirect-get pattern

More
6 years 6 months ago - 6 years 6 months ago #69803 by ggppdk
Replied by ggppdk on topic Post-redirect-get pattern
Hello

you need to use -recent- v3.0.0+ (or late v2.x) flexicontent category layout of core templates (or a duplication of them)

any templates that do not follow the new-pattern
of course can not benefit from our fix

Test
- with flexicontent core templates
- make sure your page has no JS errors due to 3rd party plugin or due to custom code


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 6 years 6 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #69809 by jrodgar
Replied by jrodgar on topic Post-redirect-get pattern
Reviewing my old implementation I see that the problem happened on categories, items (both I haven´t checked yet, have yet to test them and try your approach) and the search, where I put it on com_flexicontent/search/default_form.php


You can check yourself on your own site search, I can´t reload the page without being asked to confirm the input

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #70587 by jrodgar
Replied by jrodgar on topic Post-redirect-get pattern
friendly bump

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago - 6 years 5 months ago #70592 by ggppdk
Replied by ggppdk on topic Post-redirect-get pattern
> You can check yourself on your own site search, I can´t reload the page without being asked to confirm the input

Reload / refresh page ? yes you will be asked by browser to confirm
- the above is normal, try clicking refresh in any website and you will be asked to confirm

"The page has expried" case
- when clicking, forward / backwards browser buttons in search / filtering form
is what is handled


> You can check yourself on your own site search, I can´t reload the page without being asked to confirm the input

I just tested it works "forward / backwards browser buttons" work as intended
no "Page has expired" message

But even if we have somewhere 1 or 2 non-updated old category layouts
- then it is these layouts that need updating

In short there is nothing to fix in our distrubution package

your old layouts do not have this new code
- you will need some custom dev work to update the layouts


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 6 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #70596 by jrodgar
Replied by jrodgar on topic Post-redirect-get pattern
I´ll focus my question in a different way:

why the search page, this one ( www.flexicontent.org/site-search.html?q=...a9f64af0c6bb8f9641c2 ), this form is made through a post method?

Joomla for example, use method get www.joomla.org/search.html?q=test
Google itself, uses method get

You never get there a "confirm resubmision"

It´s not about third party error, neither my template, because I´m using the ones from flexicontent

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago - 6 years 5 months ago #70612 by ggppdk
Replied by ggppdk on topic Post-redirect-get pattern
Hello

i used the URL that you gave, i change some form fields and submitted form

- then i click back,
and there was no message "Page has expired"

so it is working

you can change it to use get
and the form will still submit
but if you do, then you will a very long URL with ALL form fields

http://localhost/joomla3xxdev/?filter=&p=all&filter_170=&filter_2%5B1%5D=&filter_2%5B2%5D=&filter_3=&filter_5=&filter_4%5B1%5D=&filter_4%5B2%5D=&filter_10%5B0%5D=&filter_16=&filter_150%5B1%5D=&filter_150%5B2%5D=&filter_52=&filter_28%5B0%5D=&filter_30=&filter_148=&filter_32%5B0%5D=&filter_33=&filter_37%5B0%5D=&filter_44=&filter_81=&filter_88=&filter_116=&filter_140=&filter_15=&filter_158=&filter_160%5B1%5D=&filter_160%5B2%5D=&limit=5&filter_order=i.title&filter_order_Dir=ASC&option=com_flexicontent&view=category&task=&cid=19&layout=&letter=&listall=0


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 6 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.297 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline