Called to allow plugins to change the redirect path after a user has logged in.

O.currentUser is the user that has just logged in.


Name Type Description
destination String The requested destination to redirect to after a successful authentication


Return information by changing these properties of the response object.

Name Type Description
redirectPath String If set, the user will be redirected to this path

JavaScript template

P.hook('hPostLoginRedirect', function(response, destination) {
    // Respond to hook, for example
    // response.redirectPath = ...