Skip to content

优化 url 生成#3191

Open
big-dream wants to merge 1 commit intotop-think:8.xfrom
big-dream:8.x-url
Open

优化 url 生成#3191
big-dream wants to merge 1 commit intotop-think:8.xfrom
big-dream:8.x-url

Conversation

@big-dream
Copy link
Contributor

修正 PATH_INFO 携带后缀时,url() 生成的地址会再次叠加后缀。

复现步骤

1.全新安装框架

composer create-project topthink/think tp
cd tp
php think run

2.访问 http://127.0.0.1:8000/index/index.html
3.使用 url() 生成 URL 地址,返回

/index/index.html.html

正常应该返回

/index/index.html

修正 PATH_INFO 携带后缀时,url() 生成的地址会再次叠加后缀
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant