![]() |
Redirect to the previous page
Hello,
I created a custom login page for my forum but I have a problem with redirecting the logged in members to the previous page which they have been viewing as guest! is there any way to do this ? Thank you. |
What is the code you used for the custom login page?
|
Quote:
This is a part of code which is related to login section : HTML Code:
<td class="alt1"> |
I think you may need to change this:
Code:
<input type="hidden" name="url" value="$vboptions[bburl]" /> Code:
<input type="hidden" name="url" value="$scriptpath" /> |
Thank you for the reply,
But there is a bug issue with "$scriptpath", if I use this variable it will redirects the user to the login page again after signing in not the previous URL. |
Hmmmm, so your site has no quick login box, it is a separate form for them to log in from? If that is the case, then I don't believe you can send them back two pages, but I am not totally sure.
|
Yes, because of the performance issues I have removed the quick login box on all pages and its a separate sign-in page.
Well, is it possible that I use this action : "onClick="history.go(-2)" in some way ? thank you for the help |
All times are GMT. The time now is 11:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|