Hi Chris,

Thanks! for replying back.

I tried making changes to actions/login.php's checkLogin() but it still
redirects to the index page after user login.

I changed
common_set_returnto(null);  to
common_set_returnto(common_local_url('groups'));

at line number:133.

I am pasting the piece of code below.

$url = common_get_returnto();
if ($url) {
// We don't have to return to it again
// common_set_returnto(null);      // original laconica code
common_set_returnto(common_local_url('groups'));  // new redirect

        } else {
            $url = common_local_url('all',
                                    array('nickname' =>
                                          $nickname));
        }

Regards,
Gaurav


On Sun, Aug 30, 2009 at 7:18 PM, Christopher Vollick <
[email protected]> wrote:

>   On 29-Aug-09, at 09:12 AM, Gaurav Wasan wrote:
>
> I am not able to figure out the place to make changes if I want the user to
> be redirected to his "HOME" page immediately as he logs in (i.e.
> http://www.domain/username/all).
> Currently, the user is redirected to the index page.
>
> Technically, the intended functionality is that the user returns to the
> page he was visiting after logging in.
> This is typically the index page.
>
> The function that says where the user should go after login is
> "common_set_returnto"
>
> For example, see /lib/mailbox.php line 64.
>
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to