]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/postsignin_redirect_not_working.mdwn
(no commit message)
[git.ikiwiki.info.git] / doc / forum / postsignin_redirect_not_working.mdwn
1 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.
3 When the plugin first runs it puts the http_referer into a param:
5     $session->param("postsignin" => $ENV{HTTP_REFERER} );
7 Then when it runs for postsignin its supposed to pull it out and send the user to the original page:
9     my $page=$q->param("postsignin");
10     ...
11     IkiWiki::redirect($q, $page);
12     exit;
14 Full code is available on the plugin page: [[plugins/contrib/justlogin]].
16 I searched the site and there's very little info available for postsignin or redirect. Perhaps I'm using the wrong function?