responseRedirect not redirecting

Jarvis

Member
I'm trying to refresh the page by doing:

PHP:
return $this->responseRedirect(
    XenForo_ControllerResponse_Redirect::SUCCESS,
    XenForo_Link::buildPublicLink('route')
);
Where route = the route of the current page.

Nothing happens after the success message.

Any ideas?
 

Jarvis

Member
After enough trial and error, I found the issue.

I needed to add

HTML:
data-redirect="on"
To my opening

HTML:
<form>
tag
 
Top