baseUrl not used when building paths in webform_booking.js

Created on 29 January 2025, 2 months ago

Problem/Motivation

When building a path in the fetchDays() and fetchSlots() function, only the internal route /get-days is used, without adding the drupalSettings.path.baseUrl before.

Steps to reproduce

In a website that has a baseUrl like www.example.com/subdirectory, try to use the Webform Booking component, the path used will be www.example.com/get-days and lead to an error.

Proposed resolution

Prepend drupalSettings.path.baseUrl to daysUrl and slotsUrl

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇨🇭Switzerland gbaudoin

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024