summaryrefslogtreecommitdiff
path: root/doc/forum
diff options
context:
space:
mode:
authorjustint <justint@web>2011-03-02 03:14:01 +0000
committerJoey Hess <joey@kitenet.net>2011-03-02 03:14:01 +0000
commitf9685411980282b48c151e8afeee6472d0212975 (patch)
tree8cca12964f2826f6bf744d20b08664492b20fd92 /doc/forum
parenta91bd978d851820d4f9f5ab3294eab77065c073d (diff)
Diffstat (limited to 'doc/forum')
-rw-r--r--doc/forum/postsignin_redirect_not_working.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/forum/postsignin_redirect_not_working.mdwn b/doc/forum/postsignin_redirect_not_working.mdwn
new file mode 100644
index 000000000..fdef56375
--- /dev/null
+++ b/doc/forum/postsignin_redirect_not_working.mdwn
@@ -0,0 +1,16 @@
+I'm confused. I got a plugin working that allows a button to call up a login screen but I can't seem to get it to return to the calling page. I end up on the prefs page.
+
+When the plugin first runs it puts the http_referer into a param:
+
+ $session->param("postsignin" => $ENV{HTTP_REFERER} );
+
+Then when it runs for postsignin its supposed to pull it out and send the user to the original page:
+
+ my $page=$q->param("postsignin");
+ ...
+ IkiWiki::redirect($q, $page);
+ exit;
+
+Full code is available on the plugin page: [[plugins/contrib/justlogin]].
+
+I searched the site and there's very little info available for postsignin or redirect. Perhaps I'm using the wrong function?