MyBB Community Forums

Full Version: Login return to previous location
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i have login form in the header page rather than going to login page users can login in any page.
But if they are on a thread and login they gets redirected to the index page rather than back to the thread.
So can anyone help me with that.
can we have your forum url and a test user account ..
ok Pmed u
you can follow this method
Hi .m
thank you for a solution
where should i enter the js code should i make a .js file or just copy paste in the welcomeblocl_guest or copy paste that in headerinclude?
^ you can use that code in header_welcomeblock_guest template
also you need to modify a line in the login form code (as suggested in the PM)
it worked when i copied paste that into the welcomeblock guest.
thank you .m
you are great.

yes i changed it to
<input type="hidden" name="url" value="{$redirect_url}" id="redirectURLTextbox1" />

marked the best answer and changed category to solved.