MyBB Community Forums

Full Version: What is this script?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know what this script is, found in the login form?

	<script type="text/javascript">
					$("#quick_login input[name='url']").val($(location).attr('href'));
				</script>
that is for keeping the user on the same page where quick login form is used for login.

if we use regular login form (~/member.php?action=login) then it redirects to index page of forum.
(2017-05-25, 05:22 AM)Michael2014 Wrote: [ -> ]Does anyone know what this script is, found in the login form?

	<script type="text/javascript">
					$("#quick_login input[name='url']").val($(location).attr('href'));
				</script>

Not sure what's it does but it's supposed to be there don't remove it.
Thank you both!