mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +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.
|
* List of XE-compatible global routes.
|
||||||
*/
|
*/
|
||||||
protected static $_global_routes = array(
|
protected static $_global_routes = array(
|
||||||
|
'$document_srl' => array(
|
||||||
|
'regexp' => '#^(?<document_srl>[0-9]+)$#',
|
||||||
|
'vars' => ['document_srl' => 'int'],
|
||||||
|
'priority' => 0,
|
||||||
|
),
|
||||||
'$mid' => array(
|
'$mid' => array(
|
||||||
'regexp' => '#^(?<mid>[a-zA-Z0-9_-]+)/?$#',
|
'regexp' => '#^(?<mid>[a-zA-Z0-9_-]+)/?$#',
|
||||||
'vars' => ['mid' => 'any'],
|
'vars' => ['mid' => 'any'],
|
||||||
|
|
@ -21,11 +26,6 @@ class Router
|
||||||
'vars' => ['act' => 'word'],
|
'vars' => ['act' => 'word'],
|
||||||
'priority' => 0,
|
'priority' => 0,
|
||||||
),
|
),
|
||||||
'$document_srl' => array(
|
|
||||||
'regexp' => '#^(?<document_srl>[0-9]+)$#',
|
|
||||||
'vars' => ['document_srl' => 'int'],
|
|
||||||
'priority' => 0,
|
|
||||||
),
|
|
||||||
'$mid/$document_srl' => array(
|
'$mid/$document_srl' => array(
|
||||||
'regexp' => '#^(?<mid>[a-zA-Z0-9_-]+)/(?<document_srl>[0-9]+)$#',
|
'regexp' => '#^(?<mid>[a-zA-Z0-9_-]+)/(?<document_srl>[0-9]+)$#',
|
||||||
'vars' => ['mid' => 'any', 'document_srl' => 'int'],
|
'vars' => ['mid' => 'any', 'document_srl' => 'int'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue