If you want to change the welcome page of Nuxeo, you just have to add the following code to the
deployment-fragment.xml of your plugin's JAR. In this example, it will the redirect the user to the default Nuxeo dashboard.
Actually, this is not enough to redirect to the dashboard as the second parameter of the "initDomainAndFindStartupPage" method will be used only in some special cases, but declaring the page with view id "/nxstartup.xhtml" and binding it to your custom action is the way to proceed to override the default behaviour.
Note that the first argument of the
startupHelper.initDomainAndFindStartupPage() method is currently not used by the default implementation and is kept only for compatibility. The second argument is a normal JSF view (actually, outcome), for instance the standard one is defined as:
/user_dashboard.xhtml resource contains the JSF code to use.