• 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
#3
Specify an empty string for the redirectMessage. You can play with this by editing:

XenForo_ControllerPublic_Post::actionReport

If you replace this:

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

Code:
$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.