Use Drupal.url() where possible.

Created on 7 April 2025, about 1 month ago

Problem/Motivation

In πŸ› Drupal CMS Needs review we identified that our manually-constructed URL's based on base path, etc. don't properly handle language switching. Though we repaired the issue over there, it makes more sense to lean on existing Drupal JavaScript API's where possible to ensure we're not reinventing the wheel and causing bugs that don't need to be there.

Proposed resolution

Replace front-end usage for BASE_URL constant with Drupal.url(), where possible. If not possible, include comments about why it could not be done.

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States chrisfromredfin Portland, Maine

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

Comments & Activities

Production build 0.71.5 2024