Ignore document_srl in widgets pages, too #2019

This commit is contained in:
Kijin Sung 2024-02-04 23:05:25 +09:00
parent 178add54e8
commit 578de6404b

View file

@ -82,7 +82,7 @@ class PageView extends Page
// if the page type is the widget or outside, there might be usable GET entities.
$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')]);
$this->setRedirectUrl($returnUrl);