mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix #2003 remove default act from short URL if there are no arguments
This commit is contained in:
parent
0adce0dd47
commit
ad23796906
2 changed files with 15 additions and 0 deletions
|
|
@ -363,6 +363,11 @@ class Router
|
|||
$internal_url = self::_insertRouteVars($result, $args2);
|
||||
return $args[$prefix_type] . ($internal_url ? ('/' . $internal_url) : '');
|
||||
}
|
||||
elseif ($args['act'] === $action_info->default_index_act && !count($args2))
|
||||
{
|
||||
self::$_route_cache[$rewrite_level][$keys_string] = '$' . $prefix_type . '$act:delete';
|
||||
return $args[$prefix_type];
|
||||
}
|
||||
}
|
||||
|
||||
// Check other modules for $act.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue