top-think / top-think/think-orm
分页时为啥一定要去掉后面的斜杠
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 437
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description
分页链接为啥一定要去掉结尾的斜杠。
我站点所有链接都是以斜杠结尾的。分页去掉尾部的斜杠,导致我路由匹配不成功。
我除了注释掉这行,还有其他更好的解决办法吗?
或者这里可以做成配置可控的吗?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/Paginator.php around line 105 and trace how pagination URLs are assembled and why the trailing slash is removed. Decide how the behavior should be exposed as configuration without breaking existing links, then verify that generated URLs preserve or remove the slash according to that setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100