Whitespace in 'destination' column is not trimmed

Created on 28 November 2023, 7 months ago
Updated 21 May 2024, about 1 month 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.69.0 2024