Doesn't work with translation with URL language detection

Created on 30 October 2023, about 1 year ago
Updated 14 May 2024, 7 months ago

Problem/Motivation

Widget does not load when the translation and URL language detection is enabled.

Steps to reproduce

1. Install content translation module.
2. Add 2 languages (say en & ja)
3. Configure URL language detection with path prefix method.(/admin/config/regional/language/detection/url)
4. Set en as English prefix and ja as Japanese prefix.
5. Go to node add form (with entity reference tree widget)
6. Click on "Taxonomy term tree" button.

Proposed resolution

The issue is after clicking the button, an ajax should be called to route 'entity_reference_tree.json'.
This call is failing because the url contains 2 language prefixes.
For eg: https://master-fzslialamfy9sappcktvbqryvcb8xf5m.tugboatqa.com/en/en/admi...

See path in below SS.

This happens with Drupal:10.1.5 & entity_reference_tree:2.3.1

🐛 Bug report
Status

Fixed

Version

2.3

Component

Code

Created by

🇮🇳India sahal_va

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024