Skip to content

Redirect after sign in #381

Description

@CrazyClicker

Hello guys!

I'm using custom function to check login on Router.onBeforeAction, with the following code

    ...
    Session.set('fromWhere', router.url);
    Router.go('/sign-in');
    Session.set('entryError', 'Error.');
    router.next();
    ...

But I keep getting redirected to '/dashboard' url after signing in, no matter what page I was trying to reach.
Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions