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");
11 IkiWiki::redirect($q, $page);
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?