+ Start a Discussion

how to avoid "confirm form re-submission"


i have a static page(say demo) with <apex:outputLink value="{!URLFOR('pagexyz')}"> that navigates to page xyz.

from xyz while iam clicking back button in browser it ask for  "confirm form re-submission" .

i need to come back to demo page onclicking back button .

iam also tried cache="false", still problem exists.

how to avoid this issue..?
Vamsi KrishnaVamsi Krishna
its not a salesforce or visualforce message.. its a standard browser warning message for all pages with forms that uses POST to submit data to server.. if the user is trying to refresh or hit back/forward that causes the form to be resubmitted, the browser gives this warning & asks for confirmation to resubmit the data..

here is a more detailed explanation

and there might be some settings (different for Chrome/Firefox/IE).. but not sure if it will fix the issue..
Chrome - https://productforums.google.com/forum/#!topic/chrome/bUNejC0hF7U

another solution is to open the link in a new tab like below.. so you can access the first page without back button..
<apex:outputLink value="{!URLFOR('pagexyz')}" target="_blank">