Fix language prefix and sub directory with Origin URL (scheme and HTTP host) of the site

Created on 2 February 2025, 20 days ago

Problem/Motivation

Default and custom images are not showing up in sites with sub-directory under domains
And when having a language prefix for selected language

Steps to reproduce

Install a site in a sub directory
Or activate a language with a prefix like (/fr/)

Proposed resolution

Add an Origin URL (scheme and HTTP host) of the site. No language prefix in it.

/** @var \Symfony\Component\HttpFoundation\Request $origin_url */
$origin_url = \Drupal::request()->getSchemeAndHttpHost() . \Drupal::request()->getBaseUrl();

And use str_starts_with with avatar and bot_image

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Other Submodules

Created by

🇯🇴Jordan Rajab Natshah Jordan

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