Answers.Body: <p>If the payment was successfully then the user has to be redirected to thank you page - </p>
  
  <p>I guess you are speaking about - 
  user manually clicking the back button or cancel button before successful payment - in that case you need to redirect the page to the event start page or just refresh the page again </p>
  
  <p>This is an cache issue </p>
  
  <p>I guess this helps !!!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-22T05:43:52.137Z
Answers.Text: Page will be redirected to start page if the user click cancel button in payment page but issue only when user click back button in payment page.You can try this steps,
  1. Start page
  2. Additional participant page
  2. Review page(Participant record will be created when you click continue button)
  3. Payment page(don't fill anything and just click browser back button then the review page will be displayed)
  4. Now click the continue button in review page. Now additional participant created again.
  
  I don't think this is cache issue.
Answers.UserDisplayName: user1536854
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-22T08:14:02.650Z
Answers.Text: please provide me a public link for testing - thanks
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-25T12:27:13.577Z
Answers.Text: In civicrm demo site itself you can see that issue,
  http://dmaster.demo.civicrm.org/civicrm/event/register?reset=1&action=preview&id=1
Answers.UserDisplayName: user1536854
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-09T04:37:55.330Z
Answers.Text: You got a chance to check this?
Answers.UserDisplayName: user1536854
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-09T08:20:44.007Z
Answers.Text: Hi I am working on the same with payment processor will let you know once done - Thanks
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-10T11:09:20.873Z
Answers.Text: Hi - This is not cache issue but still this has nothing to do with civicrm as this is an human issue - If a user is clicking the back button on the browser then I suggest notify the user to not do so - that might help else if you think of fixing the issue then please refer to the below http://stackoverflow.com/questions/19926641/how-to-disable-back-button-in-browser-using-javascript
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-17T06:23:27.897Z
Answers.Text: Thanks for your reply. I hope we can do something with civicrm to fix this issue as this issue only with additional participant not with primary participant. Fixing the issue in civicrm is necessary i think even if we can do javascript to disable back button. I will update if i find fix for this.
Answers.UserDisplayName: user1536854
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-21T08:36:57.100Z
Answers.LastActivityDate: 2016-07-21T08:36:57.100Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>In online event registration, duplicate additional  participant created  when user click continue button on review page after come back from Payment gateway(PG like Paypal Standard, Monerise) by clicking browser back button.</p>
  
  <p>Civicrm version: 4.6.2</p>
  
  <p>Any fix?</p>
  
  <p>Thanks,
  Siv</p>
  
Tags: <civievent>
Title: Duplicate additional participant created during online payment(event)
ThreadText: # Duplicate additional participant created during online payment(event)
  
  (Asked by: username_0 on 2016-07-21)
  
  In online event registration, duplicate additional participant created when user click continue button on review page after come back from Payment gateway(PG like Paypal Standard, Monerise) by clicking browser back button.
  
  Civicrm version: 4.6.2
  
  Any fix?
  
  Thanks,
  Siv
  
  **Tags:** civievent
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-21. Score: 0
  
  If the payment was successfully then the user has to be redirected to thank you page -
  
  I guess you are speaking about -
  user manually clicking the back button or cancel button before successful payment - in that case you need to redirect the page to the event start page or just refresh the page again
  
  This is an cache issue
  
  I guess this helps !!!
  
  > **Comments:**
  > **username_0**: Page will be redirected to start page if the user click cancel button in payment page but issue only when user click back button in payment page.You can try this steps, 1. Start page 2. Additional participant page 2. Review page(Participant record will be created when you click continue button) 3. Payment page(don't fill anything and just click browser back button then the review page will be displayed) 4. Now click the continue button in review page. Now additional participant created again.  I don't think this is cache issue.  
  > **username_1**: please provide me a public link for testing - thanks  
  > **username_0**: In civicrm demo site itself you can see that issue, http://dmaster.demo.civicrm.org/civicrm/event/register?reset=1&action=preview&id=1  
  > **username_0**: You got a chance to check this?  
  > **username_1**: Hi I am working on the same with payment processor will let you know once done - Thanks  
  > **username_1**: Hi - This is not cache issue but still this has nothing to do with civicrm as this is an human issue - If a user is clicking the back button on the browser then I suggest notify the user to not do so - that might help else if you think of fixing the issue then please refer to the below http://stackoverflow.com/questions/19926641/how-to-disable-back-button-in-browser-using-javascript  
  > **username_0**: Thanks for your reply. I hope we can do something with civicrm to fix this issue as this issue only with additional participant not with primary participant. Fixing the issue in civicrm is necessary i think even if we can do javascript to disable back button. I will update if i find fix for this.  
  
  ---
  
  