mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix 404 error when document_srl is the only part of the URL
This commit is contained in:
parent
221f30484f
commit
c7949e11db
1 changed files with 5 additions and 5 deletions
|
|
@ -11,6 +11,11 @@ class Router
|
|||
* List of XE-compatible global routes.
|
||||
*/
|
||||
protected static $_global_routes = array(
|
||||
'$document_srl' => array(
|
||||
'regexp' => '#^(?<document_srl>[0-9]+)$#',
|
||||
'vars' => ['document_srl' => 'int'],
|
||||
'priority' => 0,
|
||||
),
|
||||
'$mid' => array(
|
||||
'regexp' => '#^(?<mid>[a-zA-Z0-9_-]+)/?$#',
|
||||
'vars' => ['mid' => 'any'],
|
||||
|
|
@ -21,11 +26,6 @@ class Router
|
|||
'vars' => ['act' => 'word'],
|
||||
'priority' => 0,
|
||||
),
|
||||
'$document_srl' => array(
|
||||
'regexp' => '#^(?<document_srl>[0-9]+)$#',
|
||||
'vars' => ['document_srl' => 'int'],
|
||||
'priority' => 0,
|
||||
),
|
||||
'$mid/$document_srl' => array(
|
||||
'regexp' => '#^(?<mid>[a-zA-Z0-9_-]+)/(?<document_srl>[0-9]+)$#',
|
||||
'vars' => ['mid' => 'any', 'document_srl' => 'int'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue