MyBB Community Forums

Full Version: MyBB is not redirected to the previous page after login/logout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I'm using an iframe to login the MyBB.

It called "login.php"

And the template of that file is member_login

Here is that template:

<title>{$lang->login} - {$mybb->settings[bbname]}</title>
<base target="_parent" />
<link rel="stylesheet" type="text/css" media="all" href="{$mybb->settings['cdnurl']}/assets/stylesheets/common.css" />
<link rel="stylesheet" type="text/css" media="all" href="{$mybb->settings['cdnurl']}/assets/stylesheets/master.css" />
<div id="embedded-login">
<form method="post" action="{$mybb->settings['bburl']}/member.php">
<a id="embedded-close" href="javascript:;" tabindex="12000" onclick="window.parent.jQuery('#blackout, #login-embedded').hide('slow');" rel="closeLogin"></a>
<label for="quick_username" class="label">{$lang->login_username}</label>
<input type="text" name="quick_username" size="25" maxlength="{$mybb->settings['maxnamelength']}" id="username" value="" tabindex="1" class="input"/>
<label for="quick_password" class="label">{$lang->login_password}</label>
<input type="password" id="password" name="quick_password" tabindex="2" autocomplete="off" class="input"/>
<span id="remember-me">
<label for="remember">
<input type="checkbox" checked="checked" name="quick_remember" value="yes" id="remember"/>
</span> <!-- /end remember-me -->
<button class="ui-button button1" tabindex="3" type="submit" data-text="Đang xử lý...">
<span class="button-left"><span class="button-right">{$lang->login}</span></span>
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="{$redirect_url}" />
<input type="hidden" name="quick_login" value="1" />
<ul id="help-links">
<li class="icon-pass">
<a href="{$mybb->settings['bburl']}/member.php?action=lostpw">{$lang->lost_password}</a>
<li class="icon-signup">
<a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>!
</ul> <!-- /end help-links -->
</div> <!-- /end embedded-login -->

And yes, it's always redirect to the forum index.

Any solutions?

Ps: I'm using the lastest mybb version : 1.6.10
No one care about this ?
400 views and no replies Sad

I am having this same problem. It redirect to index.php not to the page i was before loggin in.
Dear all, I'm using the lastest version of MyBB with a customized theme from the default one.
So I think it's not nesescary to edit the codes. Because of new version will have patch for old bugs.

Anyway, I fixed this issue myself. It's not about jQuery Conflict, it never happens with my sites. Thanks for your helps.