chore: Fix missing baseUrl handling in JS and cover by testts

Created on 30 April 2025, 9 days ago

Problem/Motivation

Now we have many places where get the URL in JS directly from the browser. That works for common setups where Drupal is on the root path, but will not work on setups with the baseUrl not empty, like "http://example.com/my-site".

Steps to reproduce

Here are a couple of places where this should be fixed:
- https://git.drupalcode.org/issue/commercetools-3516884/-/blob/5125fb6924...
- https://git.drupalcode.org/issue/commercetools-3516884/-/blob/5125fb6924...

Proposed resolution

First of all, we need to understand why tests are passing with this issue, and make the tests check this issue and fail.
Then, fix the code to make the tests pass again.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

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

Comments & Activities

Production build 0.71.5 2024