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

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.
  • Like
Reactions: Bob
Top Bottom