login redirect to custom skuid page

I had an issue doing this Rob’s way. For some reason the home tab and the default tab showed up (even though I had both turned off in visualforce and skuid page settings).

The way I got this to work was through LoginFlow.

You create a loginflow and create a visualforce and apex controller.

Source:
https://developer.salesforce.com/docs/atlas.en-us.securityImplGuide.meta/securityImplGuide/security_…

My visualforce page looked like this:

> 
```(it just calls the "FinishLoginFlowStartUrl" of its controller on pageload)

The apex controller looks like this:

public class SkuidLoginFlowController { 
 public PageReference FinishLoginFlowStartUrl(){ 
 return Auth.SessionManagement.finishLoginFlow('/apex/home');
 }
}```(all it does is redirect to a visualforce page called "home" immediately after login. "home" is a visualforce page which hosts a skuid page)

Here is the "home" visualforce page:

    
```Now all you need to do is create a skuid page called "home" and you're done!