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

Is there a way to stop the redirectMessage from firing on AJAX triggers?

Discussion in 'XenForo Development Discussions' started by Jaxel, Apr 22, 2013.

  1. Jaxel

    Jaxel Well-Known Member

    See topic.
  2. Jaxel

    Jaxel Well-Known Member

    Still looking for a solution for this...
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Specify an empty string for the redirectMessage. You can play with this by editing:


    If you replace this:

    $controllerResponse->redirectMessage = new XenForo_Phrase('thank_you_for_reporting_this_message');
    ...with this:

    $controllerResponse->redirectMessage = '';
    ...then reporting a post will be instant with no redirect message.

    In my testing I found that you must explicitly set an empty message. It is not enough to simply not specify a message because the renderer will use a default redirect message.
    Bob likes this.
  4. Jaxel

    Jaxel Well-Known Member

    Thanks, thats exactly what I was looking for.

Share This Page