Answers.Body: <p>Since all the thank you pages have the same url (from Drupal's point of view), using Drupal's redirect module <a href="https://www.drupal.org/project/redirect" rel="nofollow">https://www.drupal.org/project/redirect</a> should work.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-28T22:14:35.653Z
Answers.LastActivityDate: 2016-07-28T22:14:35.653Z
Answers.UserDisplayName: Alan Dixon
Answers.Body: <p>This is not supported by CiviCRM by default and i cant find any drupal modules which can do the redirect from the thank you page.</p>
  
  <p>If you are a developer, you can do this using hook_civicrm_buildForm hook.</p>
  
  <p>We have done something similar to redirect from thank you page using buildForm hook. I have packaged the hook in an extension. You can download the extension here - <a href="https://github.com/rajeshrhino/uk.co.vedaconsulting.module.contributionpagesredirect" rel="nofollow">https://github.com/rajeshrhino/uk.co.vedaconsulting.module.contributionpagesredirect</a></p>
  
  <p>Before installing the extension, you need to edit main PHP file (Line no.6 - <a href="https://github.com/rajeshrhino/uk.co.vedaconsulting.module.contributionpagesredirect/blob/master/contributionpagesredirect.php#L6" rel="nofollow">https://github.com/rajeshrhino/uk.co.vedaconsulting.module.contributionpagesredirect/blob/master/contributionpagesredirect.php#L6</a>) and change the redirect URL to the URL in your site.</p>
  
  <p>Hope this helps.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-01T12:00:11.937Z
Answers.Text: Thank you, extension works fine for successful transaction. However I want to set the unsuccessful transaction to redirect to another page.
  The url of the page for unsuccessful transaction is  something like www.example.com/civicrm/contribute/transact?_qf_Main_display=true&qfKey=.........................  For every transaction only the qfKey value keeps changing. Is there any method to make this dynamic page redirect to a static page in drupal?
  
  
  Please suggest on this. Appreciate your help.
Answers.UserDisplayName: Salma
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-27T13:02:14.983Z
Answers.LastActivityDate: 2016-07-27T15:07:38.903Z
Answers.LastEditDate: 2016-07-27T15:07:38.903Z
Answers.UserDisplayName: Ghost
Answers.Body: <p>You may find this Fuzion <a href="https://github.com/eileenmcnaughton/nz.co.fuzion.frontendpageoptions" rel="nofollow">extension</a> may help with what you require. "Options added are 1) ability to choose an alternate thank you page instead of standard CiviCRM landing page"</p>
  
  <p>EDIT: this mostly provides a field for where to send users. If you want this for 'all' your contribution pages, then you would have to retro-fill those.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-27T18:10:34.683Z
Answers.LastActivityDate: 2016-07-27T18:10:34.683Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I want to set all civicrm Thankyou page to redirect to another page in Drupal 7.50 site.</p>
  
  <p>CiviCRM version is 4.6.8</p>
  
  <p>Can I add a URL direct(In drupal) for the Thankyou page which has a dynamic URL.</p>
  
  <p>Any suggestion on this?</p>
  
  <p>Thank you</p>
  
Tags: <civicontribute><drupal><contribution-page><redirect>
Title: How to set all donation to redirect users to another page if successful payment is made
ThreadText: # How to set all donation to redirect users to another page if successful payment is made
  
  (Asked by: username_0 on 2016-07-27)
  
  I want to set all civicrm Thankyou page to redirect to another page in Drupal 7.50 site.
  
  CiviCRM version is 4.6.8
  
  Can I add a URL direct(In drupal) for the Thankyou page which has a dynamic URL.
  
  Any suggestion on this?
  
  Thank you
  
  **Tags:** civicontribute, drupal, contribution-page, redirect
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2016-07-28. Score: 1
  
  Since all the thank you pages have the same url (from Drupal's point of view), using Drupal's redirect module <https://www.drupal.org/project/redirect> should work.
  
  
  ---
  
  ### Answer by username_2 on 2016-07-27. Score: 1
  
  This is not supported by CiviCRM by default and i cant find any drupal modules which can do the redirect from the thank you page.
  
  If you are a developer, you can do this using hook\_civicrm\_buildForm hook.
  
  We have done something similar to redirect from thank you page using buildForm hook. I have packaged the hook in an extension. You can download the extension here - <https://github.com/rajeshrhino/uk.co.vedaconsulting.module.contributionpagesredirect>
  
  Before installing the extension, you need to edit main PHP file (Line no.6 - <https://github.com/rajeshrhino/uk.co.vedaconsulting.module.contributionpagesredirect/blob/master/contributionpagesredirect.php#L6>) and change the redirect URL to the URL in your site.
  
  Hope this helps.
  
  > **Comments:**
  > **username_0**: Thank you, extension works fine for successful transaction. However I want to set the unsuccessful transaction to redirect to another page. The url of the page for unsuccessful transaction is  something like www.example.com/civicrm/contribute/transact?_qf_Main_display=true&qfKey=.........................  For every transaction only the qfKey value keeps changing. Is there any method to make this dynamic page redirect to a static page in drupal?   Please suggest on this. Appreciate your help.  
  
  ---
  
  ### Answer by username_3 on 2016-07-27. Score: 0
  
  You may find this Fuzion [extension](https://github.com/eileenmcnaughton/nz.co.fuzion.frontendpageoptions) may help with what you require. "Options added are 1) ability to choose an alternate thank you page instead of standard CiviCRM landing page"
  
  EDIT: this mostly provides a field for where to send users. If you want this for 'all' your contribution pages, then you would have to retro-fill those.
  
  
  ---
  
  