craftcms / craftcms/cms

Localized sites URI is not taken into account

Open
#2,143 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.