Support base prefix for url generator
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 63
- Forks
- 26
- Avg merge
- 6d 2h
- Merged PRs (30d)
- 1
Description
I want to write an application that will live under some path, e.g. /blog
So I have two ways to write my urls:
- Each route should contain
/blog - Add a prefix to url generator that will automatically add the prefix to all further urls
If I choose the first option that I need to rewrite all my urls when I want to move from /blog to /.
There are more problems than I described above: proxying, making extensions and etc.
Contributor guide
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 by locating the URL generator and its existing URL-generation tests; use the issue’s /blog and / examples as the behavior to verify. Done means a configurable prefix is applied consistently to generated URLs, including the proxying and extension cases raised in the issue, with tests covering prefixed and root deployments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100