How can I redirect to a certain page after signing in using the latest Rainlab User plugin?

Hi All,

With an earlier version of the RainLab User plugin I used to be able to simply add a directive to my sign in page for redirecting e.g.:

[account]
redirect = "services"

This seems to be gone now on the latest version. I have tried adding the account component and putting the redirect manually to no avail.

I also tried overriding the onLogin function but I’m not sure I’m doing that correctly e.g.:

function onLogin() {
    return Redirect::to('/services');
}

I am on October CMS build 4.1.13 and RainLab User plugin version 3.3.1.

Any pointers gratefully appreciated, thanks.