Answers.Body: <p>You wont be able to redirect back to the thank you page, as the thank you page URL is dynamic (with _qfkey, etc.)</p>
  
  <p><strong>Alternative solution:</strong></p>
  
  <p>You can use the URL of the create personal campaign page as the destination after login.</p>
  
  <p>In the href for the login page, you can use the below</p>
  
  <pre><code>please go &lt;a href="/user?destination=%2Fcivicrm%2Fcontribute%2Fcampaign%3Faction%3Dadd%26reset%3D1%26pageId%3D1%26component%3Dcontribute"&gt;here&lt;a&gt; to login
  </code></pre>
  
  <p>Note: The value for 'destination' query paramater should be encoded for the redirect to work correctly for any CiviCRM URLs.</p>
  
  <p>So after login, the user will be redirected to the create personal campaign page directly. This will also avoid an extra button click in the user journey you are expecting (i.e after login redirect back to thankyou page and then the user click 'Create personal campaign page' button which then takes the user to create personal campaign page.</p>
  
  <p>Hope this helps.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-07T10:29:26.550Z
Answers.LastActivityDate: 2016-07-07T10:29:26.550Z
Answers.UserDisplayName: Ghost
Answers.Body: <p>You can enable PCP in the Contribution/event page setup </p>
  
  <p>also please refer to the below link for creating own PCP page in the thank you page 
  <a href="https://book.civicrm.org/user/current/contributions/personal-campaign-pages/" rel="nofollow">https://book.civicrm.org/user/current/contributions/personal-campaign-pages/</a></p>
  
  <p>Please click this link for example 
  <a href="http://dmaster.demo.civicrm.org/civicrm/contribute/transact?reset=1&amp;id=2" rel="nofollow">http://dmaster.demo.civicrm.org/civicrm/contribute/transact?reset=1&amp;id=2</a></p>
  
  <p>I guess this helps</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-07T08:34:07.783Z
Answers.LastActivityDate: 2016-06-07T08:34:07.783Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>I have added a note to the top of <strong>create a PCP page</strong> on the thank you event page. <a href="https://i.sstatic.net/OOAfw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OOAfw.png" alt="Thank you page"></a> I have added this note in the custom template file ThankYou.tpl. For "here" i have added a href= /user, however if they login it just shows only the account information. How can i redirect user to access the PCP pages once they login. Please help, I am a newbie and do not know much about smarty template customization and CiviCRM. BTW site is Drupal 7.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-06T15:01:34.093Z
Comments.Text: hi do you want to display the PCP page or do you want to redirect to the actual page ?
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-07T00:45:32.223Z
Comments.Text: I want to Display the actual page (Thank you page), so the user can click on create a PCP page link to access the page.
Comments.UserDisplayName: Salma
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-07T00:53:19.370Z
Comments.Text: Is that possible to keep the user on the same thank you page once they login.
Comments.UserDisplayName: Salma
Tags: <pcp>
Title: How can i redirect a user to the PCP link once they login
ThreadText: # How can i redirect a user to the PCP link once they login
  
  (Asked by: username_0 on 2016-06-06)
  
  I have added a note to the top of **create a PCP page** on the thank you event page. [![Thank you page](https://i.sstatic.net/OOAfw.png)](https://i.sstatic.net/OOAfw.png) I have added this note in the custom template file ThankYou.tpl. For "here" i have added a href= /user, however if they login it just shows only the account information. How can i redirect user to access the PCP pages once they login. Please help, I am a newbie and do not know much about smarty template customization and CiviCRM. BTW site is Drupal 7.
  
  **Tags:** pcp
  
  > **Comments:**
  > **username_1**: hi do you want to display the PCP page or do you want to redirect to the actual page ?  
  > **username_0**: I want to Display the actual page (Thank you page), so the user can click on create a PCP page link to access the page.  
  > **username_0**: Is that possible to keep the user on the same thank you page once they login.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-07-07. Score: 1
  
  You wont be able to redirect back to the thank you page, as the thank you page URL is dynamic (with \_qfkey, etc.)
  
  **Alternative solution:**
  
  You can use the URL of the create personal campaign page as the destination after login.
  
  In the href for the login page, you can use the below
  
  ```
  please go <a href="/user?destination=%2Fcivicrm%2Fcontribute%2Fcampaign%3Faction%3Dadd%26reset%3D1%26pageId%3D1%26component%3Dcontribute">here<a> to login
  
  ```
  
  Note: The value for 'destination' query paramater should be encoded for the redirect to work correctly for any CiviCRM URLs.
  
  So after login, the user will be redirected to the create personal campaign page directly. This will also avoid an extra button click in the user journey you are expecting (i.e after login redirect back to thankyou page and then the user click 'Create personal campaign page' button which then takes the user to create personal campaign page.
  
  Hope this helps.
  
  
  ---
  
  ### Answer by username_1 on 2016-06-07. Score: 0
  
  You can enable PCP in the Contribution/event page setup
  
  also please refer to the below link for creating own PCP page in the thank you page
  <https://book.civicrm.org/user/current/contributions/personal-campaign-pages/>
  
  Please click this link for example
  <http://dmaster.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=2>
  
  I guess this helps
  
  
  ---
  
  