More fixes to XE compatible routes

This commit is contained in:
Kijin Sung 2020-06-14 20:31:41 +09:00
parent d0b0790beb
commit 5869201023
2 changed files with 7 additions and 3 deletions

View file

@ -223,10 +223,13 @@ class Router
// Try XE-compatible global routes.
if ($rewrite_level >= 1)
{
$result = self::_insertRouteVars(self::_getRearrangedGlobalRoutes(), $args);
if ($result !== false)
if (!isset($args['act']) || ($args['act'] === 'rss' || $args['act'] === 'atom'))
{
return $result;
$result = self::_insertRouteVars(self::_getRearrangedGlobalRoutes(), $args);
if ($result !== false)
{
return $result;
}
}
}

View file

@ -57,6 +57,7 @@
</grants>
<actions>
<action name="dispBoardContent" type="view" permission="list" standalone="false" index="true">
<route route="$document_srl:int" />
<route route="page/$page:int" />
<route route="search/$search_target/$search_keyword" />
</action>