Localized sites URI is not taken into account
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
Description
Let's say there is a US site and a France site.
US site is available through your-domain.dev.
France site is available through fr.your-domain.dev.
US section for players URI is /players/{slug}, template is /players/_entry.
France section for players URI is /joueurs/{slug}, template is /players/_entry.
I would expect URL for a player entry to be:
- US:
your-domain.dev/players/my-player-slug - France:
fr.your-domain.dev/joueurs/my-player-slug
However, Craft returns a HTTP 404 - Not Found error saying Template not found: joueurs/my-player-slug when accessing the France URL. However, fr.your-domain.dev/players/my-player-slug does work.
Additional info
- Craft version: Craft Pro 3.0.0-beta.36
- PHP version: 7.1.11
- Database driver & version: MySQL 5.7.20
- Plugins & versions: none
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
Reproduce the issue using the US and France site configuration, including the localized player URI and shared template path. Trace how the France request is resolved and verify that /joueurs/my-player-slug uses the configured /players/_entry template while preserving the localized URI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, localization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100