1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

responseRedirect not redirecting

Discussion in 'XenForo Development Discussions' started by Jarvis, Jun 20, 2016.

  1. Jarvis

    Jarvis New 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?
     
  2. Jarvis

    Jarvis New Member

    After enough trial and error, I found the issue.

    I needed to add

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

    HTML:
    <form>
    
    tag
     

Share This Page