diff --git a/config/filter.php b/config/filter.php index 90ea6bc0bc..c368da4405 100755 --- a/config/filter.php +++ b/config/filter.php @@ -30,6 +30,7 @@ $filter->default->cookie['hideMenu'] = 'equal::true'; $filter->default->cookie['tab'] = 'reg::word'; $filter->default->cookie['goback'] = 'reg::any'; +$filter->index = new stdclass(); $filter->my = new stdclass(); $filter->bug = new stdclass(); $filter->caselib = new stdclass(); @@ -68,6 +69,7 @@ $filter->tree = new stdclass(); $filter->productplan = new stdclass(); $filter->kanban = new stdclass(); +$filter->index->index = new stdclass(); $filter->block->default = new stdclass(); $filter->block->main = new stdclass(); $filter->my->work = new stdclass(); @@ -166,6 +168,8 @@ $filter->tree->browse = new stdclass(); $filter->productplan->browse = new stdclass(); $filter->kanban->space = new stdclass(); +$filter->index->index->get['open'] = 'reg::base64'; + $filter->my->work->cookie['pagerMyTask'] = 'int'; $filter->my->work->cookie['pagerMyRequirement'] = 'int'; $filter->my->work->cookie['pagerMyStory'] = 'int'; diff --git a/module/common/model.php b/module/common/model.php index 618cb64a3a..89cd3c51ab 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -2363,7 +2363,8 @@ EOD; } $url = helper::safe64Encode($_SERVER['REQUEST_URI']); - $redirectUrl = helper::createLink('index', 'index', "open=$url"); + $redirectUrl = helper::createLink('index', 'index'); + $redirectUrl .= strpos($redirectUrl, '?') === false ? "?open=$url" : "&open=$url"; die(header("location: $redirectUrl")); } diff --git a/module/index/control.php b/module/index/control.php index 65ee39cde6..daf4582448 100644 --- a/module/index/control.php +++ b/module/index/control.php @@ -34,6 +34,7 @@ class index extends control public function index($open = '') { if($this->app->getViewType() == 'mhtml') $this->locate($this->createLink('my', 'index')); + if($this->get->open) $open = $this->get->open; $latestVersionList = array(); if(isset($this->config->global->latestVersionList)) $latestVersionList = json_decode($this->config->global->latestVersionList);