humanmade / humanmade/hm-redirects
trailing-slash for local URL
Open
- Dominant language
- PHP
- Stars
- 29
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
WP common configuration adds a trailing-slash to URL.
`trailingslashit` is in charge for this.
When redirecting to a local URL, omitting the trailing-slash incur another redirect for the purpose of adding the slash.
The current code always drop that slash implying **two** redirections.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the redirect handling for local URLs and inspect how trailingslashit is used or bypassed. Reproduce a local URL without a trailing slash, then confirm the redirect preserves the slash so WordPress does not issue a second redirect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100