Source URL does not include language prefixes

Created on 8 August 2022, almost 2 years ago
Updated 9 April 2024, 3 months ago

Problem/Motivation

When viewing the printable version of a language-prefixed page, the "Source URL" provided to the template does not include the language prefix.

Steps to reproduce

Proposed resolution

The Source URL variable is being constructed manually by concatenating the base URL and the source path alias. Instead, we should use the internals of Drupal's Url object, which is language and alias aware.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Les Lim

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024