<div id="seekersloginslider" class="ctaslider">
<h2>Job Seekers Login</h2>
[[!Login? &loginResourceId=`32`]]
</div>
<div id="employersloginslider" class="ctaslider">
<h2>Employers Login</h2>
[[!Login? &loginResourceId=`18`]]
</div><div id="seekersloginslider" class="ctaslider">
<h2>Job Seekers Login</h2>
[[!Login? &loginResourceId=`32` &loginTpl=`lgnLoginTpl-1`]]
</div>
<div id="employersloginslider" class="ctaslider">
<h2>Employers Login</h2>
[[!Login? &loginResourceId=`18` &loginTpl=`lgnLoginTpl-2`]]
</div><input class="returnUrl" type="hidden" name="returnUrl" value="[[+request_uri]]" />
<input class="returnUrl" type="hidden" name="returnUrl" value="myredirect2.html" />
If you must carry on with your method of having multiple Logins, try...
<div id="seekersloginslider" class="ctaslider"> <h2>Job Seekers Login</h2> [[!Login? &loginResourceId=`32` &loginTpl=`lgnLoginTpl-1`]] </div> <div id="employersloginslider" class="ctaslider"> <h2>Employers Login</h2> [[!Login? &loginResourceId=`18` &loginTpl=`lgnLoginTpl-2`]] </div>
In chunk lgnLoginTpl-2, find
and manually insert request_uri<input class="returnUrl" type="hidden" name="returnUrl" value="[[+request_uri]]"><input class="returnUrl" type="hidden" name="returnUrl" value="myredirect2.html">
Let's have the tpl files to look at, can we?
<div class="loginForm">
<div class="loginMessage">[[+errors]]</div>
<div class="loginLogin">
<form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
<fieldset class="loginLoginFieldset">
<legend class="loginLegend">[[+actionMsg]]</legend>
<label class="loginUsernameLabel">[[%login.username]]
<input class="loginUsername" type="text" name="username" />
</label>
<label class="loginPasswordLabel">[[%login.password]]
<input class="loginPassword" type="password" name="password" />
</label>
<input class="returnUrl" type="hidden" name="returnUrl" value="http://mysite.com/index.php?id=18" />
[[+login.recaptcha_html]]
<input class="loginLoginValue" type="hidden" name="service" value="login" />
<span class="loginLoginButton"><input type="submit" name="Login" value="[[+actionMsg]]" /></span>
</fieldset>
</form>
</div>
</div><input class="returnUrl" type="hidden" name="returnUrl" value="[[~18]]" />
Ok thanks meltingdog, but could we also see the first template and the login resource contents?
<div class="loginForm">
<div class="loginMessage">[[+errors]]</div>
<div class="loginLogin">
<form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
<fieldset class="loginLoginFieldset">
<legend class="loginLegend">[[+actionMsg]]</legend>
<label class="loginUsernameLabel">[[%login.username]]
<input class="loginUsername" type="text" name="username" />
</label>
<label class="loginPasswordLabel">[[%login.password]]
<input class="loginPassword" type="password" name="password" />
</label>
<input class="returnUrl" type="hidden" name="returnUrl" value="[[+request_uri]]" />
[[+login.recaptcha_html]]
<input class="loginLoginValue" type="hidden" name="service" value="login" />
<span class="loginLoginButton"><input type="submit" name="Login" value="[[+actionMsg]]" /></span>
</fieldset>
</form>
</div>
</div>[[!Login? &loginResourceId=`18` &loginTpl=`lgnLoginTpl-2`]]