mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Ignore document_srl in widgets pages, too #2019
This commit is contained in:
parent
178add54e8
commit
578de6404b
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ class PageView extends Page
|
||||||
|
|
||||||
// if the page type is the widget or outside, there might be usable GET entities.
|
// if the page type is the widget or outside, there might be usable GET entities.
|
||||||
$request_vars = Context::getRequestVars();
|
$request_vars = Context::getRequestVars();
|
||||||
if (isset($request_vars->document_srl) && intval($request_vars->document_srl) > 0 && $page_type_name == 'article')
|
if (!empty($request_vars->document_srl) && in_array($page_type_name, ['article', 'widget']))
|
||||||
{
|
{
|
||||||
$returnUrl = getUrl(['mid' => Context::get('mid')]);
|
$returnUrl = getUrl(['mid' => Context::get('mid')]);
|
||||||
$this->setRedirectUrl($returnUrl);
|
$this->setRedirectUrl($returnUrl);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue