fix ForwardsAdd reroute mapping

This commit is contained in:
Matthew Saunders Brown 2024-08-29 13:53:01 -07:00
parent f73aec13f4
commit 8d89ff832d

View File

@ -49,7 +49,8 @@ class ForwardsAdd extends \Panel\Vmail {
if ($result_code == 0) {
$messages[] = "Success: Forwarding for email account $mbox@$domain added.";
$f3->set('SESSION.messages', $messages);
if ($f3->get('SESSION.access') == 'vmail') {
$mapping = $f3->get('NAV.mapping');
if ($mapping == 'vmail') {
$f3->reroute("/Accounts/$mbox/Forwarding");
} else {
$f3->reroute("/Email/$domain/Accounts/$mbox/Forwarding");