# Rocket - Redirect to another page

* Redirect
* uri!
* Status
* SeeOther
* TODO

* TODO: Implement the same in the separate files case.
* TODO: Redirect using other Status code
* TODO: Redirect to an external URL
* TODO: Optional redirction? (e.g. after successful login we redirect, but if it fails we would like to show the login page)
* TODO: Dynamic redirect. (e.g. after successful login we go to the page where the user really wanted to go)

{% embed include file="src/examples/rocket/redirect-to-fixed-url/src/main.rs" %}
{% embed include file="src/examples/rocket/redirect-to-fixed-url/src/tests.rs" %}


