mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Redirect to inbox after sending message
This commit is contained in:
parent
18c0e14b4b
commit
986fc23043
4 changed files with 15 additions and 4 deletions
|
|
@ -155,8 +155,14 @@ class CommunicationController extends communication
|
|||
else
|
||||
{
|
||||
$this->setMessage('success_sended');
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('','act', 'dispCommunicationMessages', 'message_type', 'S');
|
||||
$this->setRedirectUrl($returnUrl);
|
||||
if (Context::get('success_return_url'))
|
||||
{
|
||||
$this->setRedirectUrl(Context::get('success_return_url'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->setRedirectUrl(getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', 'dispCommunicationMessages'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue