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:

  1. Install at least two languages
  2. Enabled URL language selection
  3. Configure path prefixes for all languages
  4. Access a page with a control opening a JS-backed modal form
  5. Clear all caches
  6. Click on the control making the modal appear
  7. Submit the form
  8. 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

CommentFileSizeAuthor
#2 js-update_path-2724737-1.patch6.05 KBplach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plach created an issue. See original summary.

plach’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
6.05 KB
marco’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed and tested, looks good and works well.

  • markcarver committed 41feae7 on 7.x-2.x authored by plach
    Issue #2724737 by plach, marco: Always update path when bootstrap level...
markhalliwell’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.