Problem:
On multilingual sites with URL language prefixes (e.g. /en/node/4), opening the Stylify editor shows:

The code editor could not be loaded. Reload the page.

Issue fork stylify-3618927

Command icon 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

harjyottkaurr created an issue. See original summary.

harjyottkaurr’s picture

Assigned: harjyottkaurr » Unassigned
Issue summary: View changes
Status: Active » Needs review

Fixed editor loading on multilingual site, Closes #3618927.

yogesh045’s picture

Assigned: Unassigned » yogesh045
Status: Needs review » Reviewed & tested by the community

Thanks for the fix.

I reviewed MR !3 and tested the issue locally.

Testing performed:

Reproduced the original issue on a multilingual Drupal site using URL language prefixes.
Confirmed that the Stylify editor failed to load before applying MR !3.
Applied MR !3 and confirmed that the Stylify editor loads successfully with /en/ URLs.
Tested another language prefix (/fr/) and confirmed the editor loads correctly.
Tested the editor without a language prefix and confirmed existing functionality continues to work.
Reviewed the changes in MR !3 and found no unrelated changes or regressions.

Based on the code review and manual testing, this looks good to me and is RTBC.

jitendra verma made their first commit to this issue’s fork.