Ozzy47
Well-known member
When a user successfully registers on the site they are redirected to index.php?register/complete, and they are show a block saying:
Now in my register file, I try to mimic this when someone fails the registration. I have the following:
Pretty sure this is the code XF uses for successful registrations.
Problem is the user is not redirected, they stay on whatever page they were viewing and only get shown the block. I really would like to get the redirect working the same as a successful registration.
Thanks for registering. Your registration is now complete.
Now in my register file, I try to mimic this when someone fails the registration. I have the following:
PHP:
// Show bot false success message
$viewParams = [
'redirect' =>($this->buildLink('index'))
];
return $this->view('XF:Register\Complete', 'register_complete',
$viewParams);
Problem is the user is not redirected, they stay on whatever page they were viewing and only get shown the block. I really would like to get the redirect working the same as a successful registration.