Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to redirect to on a successful login

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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.