How to redirect to on a successful login | Community
Skip to main content
armanm32055672
Level 2
November 1, 2017
Solved

How to redirect to on a successful login

  • November 1, 2017
  • 1 reply
  • 1904 views

Hi,

I have two pages :4503/content/domain/home.html

                            :4503/content/login.html

I assigned a closed group to login home.html via login.html in my publish instance however when a user successfully login they get redirected to :4503/content/we-retail/us/en.html instead of :4503/content/domain/home.html. How to redirect these users to my home.html page instead of the we-retail page?

I am confused because I do have authentication requirements enabled to home.html via login.html, so from my understanding once the user successfully logins they should get redirected to home.html. I am using 'j_security_check' to submit the action in my login.html page -

        <form class="form-signin" action="login.html/j_security_check" method="post">

               <img src="/content/dam/standardLogo128.png" alt="logo">

                <h2 class="form-signin-heading">Manager</h2>

               <br>

               <label for="inputEmail" class="sr-only">Email address</label>

                     <input type="text" id="inputEmail" name="j_username" class="form-control" placeholder="Email address" required="" autofocus="">

               

               <label for="inputPassword" class="sr-only"> Password </label>

                    <input type="password" id="inputPassword" name="j_password" class="form-control" placeholder="Password" required="">

              

               <button class="btn btn-lg btn-primary btn-block" type="submit">Log in</button>

          </form>

- Arman

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

See this AEM article on a login compoennt - it may help...

Creating a Login Component for the Experience Manager Toy Store

As you can see - you can define the redirect in the login app logic.

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
November 1, 2017

See this AEM article on a login compoennt - it may help...

Creating a Login Component for the Experience Manager Toy Store

As you can see - you can define the redirect in the login app logic.