Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

[SOLVED] Redirect to index after login

Hello, I need help with some routing I can not find how to make. My site is local.mysite.com, after login I need it to show the address as local.mysite.com/user1. How can I achieve this?

Thanks.



3.1k
Accepted
answer

You can use the dispatcher to forward the current action but this doesn't changes the uri. If you really want to redirect the user, use : "$this->response->redirect('/user1');" in your controller



12.5k

Thanks cylessia, "$this->response->redirect('user1');" did the trick :D