Redirects don't work with trailing slash in source path

Created on 5 March 2021, about 4 years ago
Updated 18 March 2024, 12 months ago

Problem/Motivation

Redirects don't work when redirect source path has a trailing slash

Steps to reproduce

  1. Drupal version: 8.9.6 + PHP 7.3.27
  2. Visit /admin/config/search/redirect/add
  3. Type /redirect-url/ {note the trailing slash} in the Path
  4. Submit after giving destination URL

Proposed resolution

  • Either don't allow trailing slash or get it working

Cheers,

Lakshman

🐛 Bug report
Status

Closed: duplicate

Version

1.6

Component

Code

Created by

🇮🇳India lakshmanDrupal Delhi NCR

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