I'm looking at one of the custom login controllers for communities and noticed this:
@AuraEnabled
public static String login(String username, String password, String startUrl) {
try{
ApexPages.PageReference lgn = Site.login(username, password, startUrl);
aura.redirect(lgn);
return null;
}
catch (Exception ex) {
system.debug('error message ' + ex.getMessage());
return ex.getMessage();
}
}
Basically, the user will enter in a username and password, and after they click "login" they will be redirected to the start url. Is there any documentation around aura.redirect?