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

More
9 years 8 months ago - 7 years 1 month ago #52999 by jrodgar
Hi!

I was receiving a message of "resend form info" on category and search views when pressing back on the browser.

I implemented the post-redirect-get patteern on them with a simple
Code:
if ($_POST) { // Redirect to this page. header("Location: " . $_SERVER['REQUEST_URI']); exit(); }

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7
Last edit: 7 years 1 month ago by ggppdk.

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

More
9 years 8 months ago #53008 by micker
Replied by micker on topic Post-redirect-get pattern
think to propose it on gihut to help team better ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
9 years 8 months ago #53019 by ggppdk
Replied by ggppdk on topic Post-redirect-get pattern
Hello

this should be inside an appropriate place, with appropriate

"if" statement, to avoid problems,


-- 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...

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

More
9 years 8 months ago #53055 by jrodgar
Replied by jrodgar on topic Post-redirect-get pattern
I add it on

component/com_flexicontent/mytemplate/category.php
component/com_flexicontent/mytemplate/item.php
templates/mytemplate/html/com_flexicontent/search/default_form.php


You are right micker :) but I post it here first in case I´m missing something

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
9 years 8 months ago #53062 by micker
Replied by micker on topic Post-redirect-get pattern
no problem thanks for sharing

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
9 years 8 months ago #53085 by ggppdk
Replied by ggppdk on topic Post-redirect-get pattern
Hello

yes this is useful,

we should test / (and do some homework/reading on this)

and add it
Code:
if ($_POST) { // Redirect to this page. header("Location: " . $_SERVER['REQUEST_URI']); exit(); }


It is strange to me that the above does not cause any problems, i ll need to look at it


-- 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...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.719 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