TickTackk
Well-known member
- Affected version
- 2.2.1
First in template
should be:
Then in
should be:
Edit: If someone were to go to page
account_alerts_mark_read
this:
HTML:
<xf:redirect />
<xf:hiddenval name="unread">{{ $newUnreadStatus ? 1 : 0 }}</xf:hiddenval>
</xf:form>
HTML:
<xf:redirect url="{$redirect}" />
<xf:hiddenval name="unread">{{ $newUnreadStatus ? 1 : 0 }}</xf:hiddenval>
</xf:form>
Then in
XF\Pub\Controller\Account::actionAlertToggle()
this:
PHP:
$redirect = $this->buildLink('account/alerts');
PHP:
$redirect = $this->getDynamicRedirect($this->buildLink('account/alerts'));
Edit: If someone were to go to page
69
and then open the "Mark as read" or "Mark as unread" for an alert in a new tab, click submit then they would be redirected back to page 1 instead of the last page they were on.
Last edited: