Yongho Kim's Redirect to previous method | Peter's Login Redirect | Forum
Back to the login redirect plugin page
10:26 am
Below is what was posted in the comments. Is there any way to upload this type of page from within WordPress without stripping out the JavaScript functionality. I need to do this but I do not have FTP or Cpanel access to the site I'm building.
Yongho Kim posted this in the plugin comments
this is my trick for making people go back to where they came from after the login:
2. On X page, load up a javascript forcing the user to go back 2 pages (1 for the login page, and 2 for the original page)
My implementation was setting up a wiki page with securehtml enabled: http://krcla.org/blog/w-en/ind.....ction=edit
Let’s see if the code pastes properly here:
<html><script type="text/javascript">
function redirectIt() {
window.location.replace(history.go(-2));
}
window.onload = redirectIt;
</script></html>
9:21 am
Andy P said:
Below is what was posted in the comments. Is there any way to upload this type of page from within WordPress without stripping out the JavaScript functionality. I need to do this but I do not have FTP or Cpanel access to the site I'm building.
In WordPress I believe you can paste pretty much any HTML or Javascript content in the content section while on the "HTML" tab (as opposed to the "Visual Editor" tab) and it should work.