Answers.Body: <p>I just came across this post &amp; discussion which is exactly what I needed: <a href="https://craftcms.stackexchange.com/questions/35773/how-to-immediately-redirect-to-an-entry-after-creating-the-new-entry-from-a-fron">How to immediately redirect to an entry after creating the new entry from a frontend form?</a></p>
  <p>Worked like a charm:</p>
  <pre><code>{{ redirectInput('{uri}') }}
  </code></pre>
  <p>Thanks to <a href="https://craftcms.stackexchange.com/users/4169/august-miller">https://craftcms.stackexchange.com/users/4169/august-miller</a> for the answer.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-06T21:54:30.903Z
Answers.LastActivityDate: 2021-12-06T21:54:30.903Z
Answers.UserDisplayName: Kieron Keenan
Body: <p>I'm currently working on an app and functionality as part of the app allows users to edit entries via a front-end form.</p>
  <p>As part of editing the entry, users can update the entry title (and the slug gets updated automatically).</p>
  <p>When the entry title is changed and saved, obviously the slug will be different, so refreshing the page after the form submit will return a 404 error because it's returning the 'old' page slug.</p>
  <p>Any suggestion for a workaround here? What would be the best approach? Ideally after the submit, I love to just return the to same page w/ the updated slug in the url.</p>
  <p>Thank you.</p>
  
Tags: <entries><redirect><frontend-form><entry-slug>
Title: Updating an entry slug while viewing the entry on the front-end
ThreadText: # Updating an entry slug while viewing the entry on the front-end
  
  (Asked by: username_0 on 2021-12-06)
  
  I'm currently working on an app and functionality as part of the app allows users to edit entries via a front-end form.
  
  As part of editing the entry, users can update the entry title (and the slug gets updated automatically).
  
  When the entry title is changed and saved, obviously the slug will be different, so refreshing the page after the form submit will return a 404 error because it's returning the 'old' page slug.
  
  Any suggestion for a workaround here? What would be the best approach? Ideally after the submit, I love to just return the to same page w/ the updated slug in the url.
  
  Thank you.
  
  **Tags:** entries, redirect, frontend-form, entry-slug
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-12-06. Score: 1 | Accepted answer
  
  I just came across this post & discussion which is exactly what I needed: [How to immediately redirect to an entry after creating the new entry from a frontend form?](https://craftcms.stackexchange.com/questions/35773/how-to-immediately-redirect-to-an-entry-after-creating-the-new-entry-from-a-fron)
  
  Worked like a charm:
  
  ```
  {{ redirectInput('{uri}') }}
  
  ```
  
  Thanks to <https://craftcms.stackexchange.com/users/4169/august-miller> for the answer.
  
  
  ---
  
  