We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Url not Updating

Hi guys,

I have problem with my URL, I have login page when i access in my URL looks project/login when i have a successful login it redirects me to dashboard but my url is still on project/login it should be project/dashboard

<?php

                    if($find_user){

                    $this->forward('dashboard');
                    }
                    else{

                    $message = 'Invalid email/password combination';
                    self::_LFerror($message);

                    return false;
                    }


58.4k
Accepted
answer

Hey man

You should used method

     return $this->response->redirect('dashboard');

@Thiện big big thanks man :)