You can find a working sample at [0] (Requires Sling 8). As Robert mentioned, you will need to setup an OSGi configuration [1] to point to your desired login page [2][3].
Hope this helps! [0] https://github.com/auniverseaway/slick-2 [1] https://github.com/auniverseaway/slick-2/blob/master/ui.apps/src/main/resources/jcr_root/apps/slick/install/org.apache.sling.auth.form.FormAuthenticationHandler.json [2] https://github.com/auniverseaway/slick-2/blob/master/ui.apps/src/main/resources/jcr_root/content/slick/publish/login.json [3] https://github.com/auniverseaway/slick-2/tree/master/ui.apps/src/main/resources/jcr_root/apps/slick/author/common/login On Fri, Apr 19, 2019 at 1:33 AM Robert Munteanu <[email protected]> wrote: > Hi Andy, > > On Thu, 2019-04-18 at 10:36 -0700, Andreas Schaefer wrote: > > Hi > > > > I am wondering how an application would set a different landing page > > than the Sling Starter Page? > > > > I tried to change the sling:target through a package deployment and > > it works for /content but not for the root (/). > > Have you tried changing the form.login.form property of the > org.apache.sling.formauth.FormAuthenticationHandler component , as > described at [1]? > > Thanks, > > Robert > > > [1]: > https://sling.apache.org/documentation/the-sling-engine/authentication/authentication-authenticationhandler/form-based-authenticationhandler.html#configuration > >
