# How do I redirect to a page that enters via username? With authenticated user

**URL:** <https://forum.djangoproject.com/t/how-do-i-redirect-to-a-page-that-enters-via-username-with-authenticated-user/14530>\
**Category:** Getting Started\
**Created:** [June 29, 2022, 1:12am UTC](https://forum.djangoproject.com/t/how-do-i-redirect-to-a-page-that-enters-via-username-with-authenticated-user/14530 "2022-06-29T01:12:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HadesKerbecs](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/hadeskerbecs/32/9051_2.png) [@HadesKerbecs](https://forum.djangoproject.com/u/HadesKerbecs)\
**Post date:** [June 29, 2022, 1:12am UTC](https://forum.djangoproject.com/t/how-do-i-redirect-to-a-page-that-enters-via-username-with-authenticated-user/14530/1 "2022-06-29T01:12:55Z")

</div>

Is it possible to redirect to a page that enters through username?  
I enter the profile page with profile/edu  
How do I go after authenticating the user to go directly to this page?  
LOGIN\_REDIRECT\_URL = ‘/profile/’  
Is it possible with this code?  
You can put /edu in LOGIN\_REDIRECT\_URL = ‘/profile/’

urlpatterns = [  
path(‘perfil/str:username/’,perfil,name=‘Informações’),  
]

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [June 29, 2022, 2:13am UTC](https://forum.djangoproject.com/t/how-do-i-redirect-to-a-page-that-enters-via-username-with-authenticated-user/14530/2 "2022-06-29T02:13:39Z")

</div>

One of the best ways to learn about stuff like this is to just go ahead and try it!

See what happens, and what breaks.

If you get error messages that you don’t understand and can’t figure out, that’s where we can help.  
It’s a lot easier for us to help you with actual code than to try and explain things in generalities that may or may not match your exact situation.

---

<div class="post-metadata">

**Author:** ![HadesKerbecs](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/hadeskerbecs/32/9051_2.png) [@HadesKerbecs](https://forum.djangoproject.com/u/HadesKerbecs)\
**Post date:** [June 29, 2022, 3:07am UTC](https://forum.djangoproject.com/t/how-do-i-redirect-to-a-page-that-enters-via-username-with-authenticated-user/14530/3 "2022-06-29T03:07:17Z")

</div>

It’s because I’m doing a job, and the question asks for just that, VIEW AUTHENTICATED USER PUBLICATIONS

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [June 29, 2022, 11:39am UTC](https://forum.djangoproject.com/t/how-do-i-redirect-to-a-page-that-enters-via-username-with-authenticated-user/14530/4 "2022-06-29T11:39:18Z")

</div>

That’s the purpose of having a development environment (or multiple development environments) that are independent of your production environments. It’s a place where you can experiment and try things out.
