Skip to content
Permalink
Browse files

join page should not redirect back to join page if you went to it fro…

…m join page
  • Loading branch information...
chrisgraham committed May 24, 2019
1 parent 055cc4c commit 54f5046ef24f7a884396c97fbe4ca222568d5a7c
Showing with 5 additions and 1 deletion.
  1. +5 −1 sources/forum/cns.php
@@ -611,7 +611,11 @@ protected function _join_url()
if (has_interesting_post_fields()) {
$page = '';
}
$_redirect_url = build_url(array('page' => $page), '_SELF', array('keep_session' => 1, 'redirect' => 1), true);
if (get_page_name() == 'join') {
$_redirect_url = build_url(array('page' => 'start'), '');
} else {
$_redirect_url = build_url(array('page' => $page), '_SELF', array('keep_session' => 1, 'redirect' => 1), true);
}
$redirect_url = $_redirect_url->evaluate();
$redirect_url = get_param_string('redirect_passon', get_param_string('redirect', $redirect_url));

0 comments on commit 54f5046

Please sign in to comment.
You can’t perform that action at this time.