Answers.Body: <p>Sorry, false alarm. My template file was not syncing with the server. To recap, this works like a charm:</p>
  
  <pre><code>{{ redirectInput('join/payment/{id}') }}
  </code></pre>
  
  <p>This results in a redirect that includes the ID of the entry or user that was just created!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-23T16:18:20.197Z
Answers.LastActivityDate: 2018-09-23T16:18:20.197Z
Answers.UserDisplayName: Roi Agneta
Body: <p>I have a public registration form and want to redirect to a payment page where I will need some details about the newly created user. I tried doing this in my form:</p>
  
  <pre><code>&lt;input type="hidden" name="action" value="users/save-user"&gt;
  {{ redirectInput('join/payment/?user={id}') }}
  </code></pre>
  
  <p>I have set a custom route to allow for the query parameter:</p>
  
  <pre><code>   if url = join/payment/*  load template join/payment
  </code></pre>
  
  <p>but the resulting url does not include the query string, just the first two segments, 'join/payment'.</p>
  
  <p>Am I doing something wrong here?</p>
  
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-23T01:14:58.580Z
Comments.Text: Can you edit the question to share the custom route definition you've created?
Comments.UserDisplayName: Brad Bell
Tags: <redirect>
Title: Using redirectInput {id} parameter
ThreadText: # Using redirectInput {id} parameter
  
  (Asked by: username_0 on 2018-09-22)
  
  I have a public registration form and want to redirect to a payment page where I will need some details about the newly created user. I tried doing this in my form:
  
  ```
  <input type="hidden" name="action" value="users/save-user">
  {{ redirectInput('join/payment/?user={id}') }}
  
  ```
  
  I have set a custom route to allow for the query parameter:
  
  ```
     if url = join/payment/*  load template join/payment
  
  ```
  
  but the resulting url does not include the query string, just the first two segments, 'join/payment'.
  
  Am I doing something wrong here?
  
  Thanks!
  
  **Tags:** redirect
  
  > **Comments:**
  > **username_1**: Can you edit the question to share the custom route definition you've created?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-09-23. Score: 2
  
  Sorry, false alarm. My template file was not syncing with the server. To recap, this works like a charm:
  
  ```
  {{ redirectInput('join/payment/{id}') }}
  
  ```
  
  This results in a redirect that includes the ID of the entry or user that was just created!
  
  
  ---
  
  