X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9d1d1844b306218d3a926fe0a93bb7100268d80f..66b92c6eb5fadc62c503a6925b86eff03632d640:/ikiwiki diff --git a/ikiwiki b/ikiwiki index fa214971b..ce89112de 100755 --- a/ikiwiki +++ b/ikiwiki @@ -746,13 +746,14 @@ sub cgi_signin ($$) { #{{{ if ($form->submitted && $form->validate) { if ($form->submitted eq 'Login') { $session->param("name", $form->field("name")); - if (defined $form->field("do")) { - $q->redirect( + if (defined $form->field("do") && + $form->field("do") ne 'signin') { + print $q->redirect( "$cgiurl?do=".$form->field("do"). "&page=".$form->field("page")); } else { - $q->redirect($url); + print $q->redirect($url); } } elsif ($form->submitted eq 'Register') {