New protocol check for href doesn't support root-relative URLs

Created on 28 April 2025, 14 days ago

Problem/Motivation

The new logic that checks the href to match the protocoll of the page doesn't support root-relative URL's (/sites/default/files....), which are the default and recommended as you don't need to cache by domain then.

Should check for things starting with a / and not dropping that then.

The handling of that also seems weird, if it unsets it then colorbox will do a request to domain/path/undefined, so it should probably log something and abort initialization instead of this?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland berdir Switzerland

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