Whitespace in 'destination' column is not trimmed

Created on 28 November 2023, about 1 year ago
Updated 21 May 2024, 9 months ago

When importing the following redirect, the destination URL will be saved as /target-url%20%20:

source,destination,language,status_code
/source-url,/target-url  ,en,302

We need to modify the migration logic to first trim whitespace left and right.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium beerendlauwers

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

Comments & Activities

  • Issue created by @beerendlauwers
  • 🇩🇪Germany Anybody Porta Westfalica

    I think such additional options should eventually be a setting on import instead of hard coded?

    There might be cases where you don't want any automatic processing on the imported items, for example because your old /legacy URLs contained "%20"?

    But that should be discussed.

Production build 0.71.5 2024