Remove language from redirect form path prefix

Created on 9 April 2021, about 4 years ago
Updated 4 March 2023, about 2 years ago

Problem/Motivation

On the form in the 'Add URL Redirect' page the language code is present in the path prefix, this is confusing for webmasters trying to add redirects. Languages are also already covered in the select below it.

Steps to reproduce

1. Add multiple languages to site interface
2. Go to /admin/config/search/redirect/add
3. The Path input will have a language added to it, like this example:

http://website.com/en

Proposed resolution

Change the field prefix in RedirectSourceWidget.php to the global $base_url.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇳🇱Netherlands Brouwer

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.71.5 2024