关于独立页面命名为“feedback”的Bug! #507

Open
drny opened this Issue Oct 15, 2016 · 2 comments

Projects

None yet

3 participants

@drny
drny commented Oct 15, 2016

当创建独立页面时,如果地址填 feedback ,那么在feedback页面提交评论会跳转到404页面!请作者修复下

@kokororin
kokororin commented Oct 15, 2016 edited

和系统内置路由冲突了,如果楼主急用的话可以参考以下代码修改源代码,等作者修复可能要等很久
修改var/Typecho/Router.phpdispatch方法 大约124行
self::$current = $key;之后加入以下代码:

                if (preg_match('/(.*)\/comment/', $pathInfo)) {
                    $route = self::$_routingTable['feedback'];
                    preg_match($route['regx'], $pathInfo, $matches);
                }
@drny
drny commented Oct 15, 2016

谢谢回复, 不过暂时不想修改源码,用拼音或换为其它名称就好了

@joyqi joyqi was assigned by fenbox Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment