• 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?

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.