diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-02 12:40:57 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-02 12:40:57 -0400 |
commit | 899b8c80a08ef4bf4ebc177045e86859fbef554f (patch) | |
tree | cfe44f29c3b382d7c9f92520794170afcebf0be8 /doc/forum | |
parent | 7e4a0c2930afee2249ea5f3eac882460759bc2ae (diff) | |
parent | f512a20c401c8bf2985e3b6a55c80d9578887c78 (diff) |
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Diffstat (limited to 'doc/forum')
-rw-r--r-- | doc/forum/postsignin_redirect_not_working.mdwn | 16 |
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? |