Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
As a user I want decoupled router to provide a langcode so my frontend can render the view using the correct endpoints.
Steps to reproduce
- https://demo-api.druxtjs.org/router/translate-path?path=/es
Resolves doesn't provide any langcode
Proposed resolution
- Add similar solution as per https://www.drupal.org/project/decoupled_router/issues/3111456
Remaining tasks
- Do the thing
User interface changes
No
API changes
Data model changes
Langcode added
Comment | File | Size | Author |
---|
Issue fork druxt-3273228
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
Deciphered CreditAttribution: Deciphered as a volunteer and at Realityloop commentedCurrently depends on the patch from https://www.drupal.org/project/decoupled_router/issues/3111456#comment-1...
Comment #4
Deciphered CreditAttribution: Deciphered as a volunteer and at Realityloop commentedThere's a mix of correct and incorrect language prefixes in the output at the moment, needs work:
Comment #5
Deciphered CreditAttribution: Deciphered as a volunteer and at Realityloop commentedThose incorrect items prevent DruxtBlockRegion from rendering by path visibility for non-"en" prefixes.
Comment #7
Deciphered CreditAttribution: Deciphered as a volunteer and at Realityloop commentedHi @captaindav,
As mentioned on Discord, I'm removing the tests from this patch for the moment, and will add a follow-up story to add them later.
I have also rolled back a bunch of commits, as there was at least one commit that broke the working patch.