Avoid language part in base URL

Created on 29 February 2024, about 1 year ago
Updated 15 March 2024, about 1 year ago

Problem/Motivation

We determine the location of files by getting the base URL, but this location probably contains the language, e.g. en. The result is, for instance: https://www.example.com/en.

So the player cannot find the requested files.

Proposed resolution

Change the code to determine the base URL like: Url::fromRoute('<front>', ['absolute' => TRUE, 'path_processing' => FALSE, 'language' => FALSE])->toString(). We also need a proper helper function for a possible slash.

🐛 Bug report
Status

Fixed

Version

2.5

Component

Code

Created by

🇩🇪Germany danielspeicher Steisslingen

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