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
In multilingual environments path may not be correctly initialized if the JS callback bootstrap level is DRUPAL_BOOTSTRAP_LANGUAGE
or above.
Steps to reproduce:
- Install at least two languages
- Enabled URL language selection
- Configure path prefixes for all languages
- Access a page with a control opening a JS-backed modal form
- Clear all caches
- Click on the control making the modal appear
- Submit the form
- Verify a message similar to the following is displayed:
The requested URL "/en/en/..." could not be found.
Proposed resolution
Always update path when bootstrap level is DRUPAL_BOOTSTRAP_LANGUAGE
and above.
Remaining tasks
- Agree on a solution
Write a patch- Reviews
User interface changes
None
API changes
Only additions
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | js-update_path-2724737-1.patch | 6.05 KB | plach |
Comments
Comment #2
plachComment #3
marco CreditAttribution: marco at Tag1 Consulting commentedReviewed and tested, looks good and works well.
Comment #5
markhalliwell