XF 2.0 How to force a flash message with a redirect?

Marcel

Active member
I've figured out how to force a flash message when coming from a form, by adding data-force-flash-message="true" to the <xf:form> field.
How do I force a flash message to appear with this redirect?
PHP:
return $this->redirect($this->buildLink('threads', $thread), 'Insert Message Here');

The message is not being displayed, is there any way I can force it?
 
If the redirect is not happening via AJAX, I don't believe there is currently a way to force a redirect message. You would have to create a template similar to this:

Code:
<xf:title>Redirecting...</xf:title>

<meta http-equiv="Refresh" content="2; URL={$url}" />

<div class="block">
    <div class="block-container">
        <div class="block-body">
            <div class="block-row">{$message|raw} Redirecting...</div>
        </div>
    </div>
</div>

Or something.


Fillip
 
Back
Top Bottom