Answers.Body: <p>Sprout Forms now supports relative redirects.</p>
  
  <p>Example redirect values:</p>
  
  <ul>
  <li>/thank-you</li>
  <li>thank-you</li>
  <li>?message=success</li>
  <li>thank-you?message=success</li>
  <li>{siteUrl}</li>
  <li><a href="http://website.com/thank-you" rel="nofollow">http://website.com/thank-you</a></li>
  </ul>
  
  <p>We've also added this info <a href="http://sprout.barrelstrengthdesign.com/craft-plugins/forms/docs/customization/redirects" rel="nofollow">in the documentation</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-05T02:37:49.870Z
Answers.LastActivityDate: 2016-02-05T02:37:49.870Z
Answers.UserDisplayName: Ben Parizek
Answers.Body: <p>Sure, in the control panel for sprout forms you can set the redirect page. Say the url for your contact page is /contact you can do something like redirect to:</p>
  
  <pre><code>contact?message=thank-you
  </code></pre>
  
  <p>and then in your contact template do something like:</p>
  
  <pre><code>{# Check if we should display a thank you message #}
  {% if craft.request.getParam('message') == 'thank-you' %}
   //do stuff here
  {% endif %}
  </code></pre>
  
  <p>Sprout installs a bunch of sample forms, there's plenty to gleam and learn from these.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-23T11:54:16.463Z
Answers.Text: Thanks for your response, erwinheiser. What if the URL is a specific entry, rather than a contact page where the URL is known? I am using the form on many pages, and would like to redirect to the same page. I envisage that if not possible with Craft Sprout Forms, I may just have to use javascript when the page loads to alter the contact of the redirect data-attribute.
Answers.UserDisplayName: Adam Menczykowski
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-23T20:58:47.203Z
Answers.Text: if you're always redirecting to the same page then set that page as your redirect url. Should work.
Answers.UserDisplayName: erwinheiser
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-25T15:22:51.870Z
Answers.Text: The problem is that I don't know the url, as the same form is on many pages, and I want to return to the page the form is on but with an additional query string e.g. If the form is on example.com/page1 then I want to redirect to example.com/page1?status=thankyou. And if I am on example.com/page2 then I want to redirect to example.com/page2?status=thankyou
Answers.UserDisplayName: Adam Menczykowski
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-25T20:43:10.863Z
Answers.Text: hmmm, I see, not sure if that's possible. Maybe check in with Ben at Sprout for a feature request?
Answers.UserDisplayName: erwinheiser
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-26T21:25:56.890Z
Answers.Text: OK Thanks a lot for your help, I will contact Sprout directly.
Answers.UserDisplayName: Adam Menczykowski
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-20T23:56:02.847Z
Answers.LastActivityDate: 2015-11-21T00:37:22.800Z
Answers.LastEditDate: 2015-11-21T00:37:22.800Z
Answers.UserDisplayName: erwinheiser
Body: <p>I'm looking to redirect the user to the same page that they were on, with an additional query string.</p>
  
  <p>Is this possible?</p>
  
  <p>Thanks
  Adam</p>
  
Tags: <plugin-sproutforms>
Title: Sprout Forms - Redirect to same page with query string
ThreadText: # Sprout Forms - Redirect to same page with query string
  
  (Asked by: username_0 on 2015-11-18)
  
  I'm looking to redirect the user to the same page that they were on, with an additional query string.
  
  Is this possible?
  
  Thanks
  username_0
  
  **Tags:** plugin-sproutforms
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-02-05. Score: 2 | Accepted answer
  
  Sprout Forms now supports relative redirects.
  
  Example redirect values:
  
  * /thank-you
  * thank-you
  * ?message=success
  * thank-you?message=success
  * {siteUrl}
  * <http://website.com/thank-you>
  
  We've also added this info [in the documentation](http://sprout.barrelstrengthdesign.com/craft-plugins/forms/docs/customization/redirects)
  
  
  ---
  
  ### Answer by username_2 on 2015-11-20. Score: 2
  
  Sure, in the control panel for sprout forms you can set the redirect page. Say the url for your contact page is /contact you can do something like redirect to:
  
  ```
  contact?message=thank-you
  
  ```
  
  and then in your contact template do something like:
  
  ```
  {# Check if we should display a thank you message #}
  {% if craft.request.getParam('message') == 'thank-you' %}
   //do stuff here
  {% endif %}
  
  ```
  
  Sprout installs a bunch of sample forms, there's plenty to gleam and learn from these.
  
  > **Comments:**
  > **username_0**: Thanks for your response, username_2. What if the URL is a specific entry, rather than a contact page where the URL is known? I am using the form on many pages, and would like to redirect to the same page. I envisage that if not possible with Craft Sprout Forms, I may just have to use javascript when the page loads to alter the contact of the redirect data-attribute.  
  > **username_2**: if you're always redirecting to the same page then set that page as your redirect url. Should work.  
  > **username_0**: The problem is that I don't know the url, as the same form is on many pages, and I want to return to the page the form is on but with an additional query string e.g. If the form is on example.com/page1 then I want to redirect to example.com/page1?status=thankyou. And if I am on example.com/page2 then I want to redirect to example.com/page2?status=thankyou  
  > **username_2**: hmmm, I see, not sure if that's possible. Maybe check in with Ben at Sprout for a feature request?  
  > **username_0**: OK Thanks a lot for your help, I will contact Sprout directly.  
  
  ---
  
  