-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
反馈一个路由配置相关的Bug #140
Comments
看看 全路径路由是否可以设置成 '/u' => '/space/index' 如果不行的话 我得晚点看看 |
您好,是把
|
看了下 前缀匹配可以用 '^u' => 'space/index' |
但这样的话,路由① 的 http://localhost/u 就废了。。。 |
不是哈 你反馈的bug主要是因为路由没有按全路径匹配 导致的末尾是u的会被先替换成了 space/index |
理论上用 ^u 就可以只匹配 /u ,但是呢,好像访问 http://localhost/u 会判断路由①没有匹配到,然后去匹配路由② |
好的 应该是有bug 我晚点修复下 |
更新了下 lib/business/Router.php |
好的,感谢 |
比如说,
我先定义了这样的路由①:
然后有另外一个路由②:
然后,如果我访问的是 "http://localhost/taiwu",
正常我是希望他走路由②,但实际上他会这样一个错误:
他把
taiwu
后面的u
替换成了space
,然后再去找taiwspaceAction
,发现没找到,结果返回404.The text was updated successfully, but these errors were encountered: