Jump to content

Login redirect problem


Recommended Posts

Hi guys, I have problem with redirecting after login from custom login form. I would like to stay on same page after login, but hidden input "back" is not working. I am still redirected to my-account url. Here is html code which I am using in my module:

        <div class="block">
            <form action="index.php?controller=authentication&back=index.php" method="post" id="login_form" class="std">
                <p class="title_block" style="margin-bottom: 10px;">Login form</p>
                <div class="form_content clearfix">
                    <p class="text">
                        <label for="email">Email</label>
                        <span><input type="text" id="email" name="email" value="" class="account_input" style="width: 192px;" /></span>
                    </p>
                    <p class="text">
                        <label for="passwd">Pass</label>
                        <span><input type="password" id="passwd" name="passwd" value="" class="account_input" style="width: 192px;" /></span>
                    </p>
                    <p class="submit">
                        <input type="hidden" class="hidden" name="back" value="index.php" />
                        <input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="Login" />
                    </p>
                </div>
            </form>
        </div>

I am using prestashop version 1.5.6.2 and redirecting is not working even if I login via classic login form from custom page. I am still redirected to my-account.

Link to comment
Share on other sites

×
×
  • Create New...