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

@ -222,6 +222,8 @@ class Router
// Try XE-compatible global routes. // Try XE-compatible global routes.
if ($rewrite_level >= 1) if ($rewrite_level >= 1)
{
if (!isset($args['act']) || ($args['act'] === 'rss' || $args['act'] === 'atom'))
{ {
$result = self::_insertRouteVars(self::_getRearrangedGlobalRoutes(), $args); $result = self::_insertRouteVars(self::_getRearrangedGlobalRoutes(), $args);
if ($result !== false) if ($result !== false)
@ -229,6 +231,7 @@ class Router
return $result; return $result;
} }
} }
}
// If no route matches, just create a query string. // If no route matches, just create a query string.
return 'index.php?' . http_build_query($args); return 'index.php?' . http_build_query($args);

View file

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