301 Auto-Update and Trailing Slashes

Created on 1 July 2015, over 9 years ago
Updated 19 April 2024, 7 months ago

I maintain a site that was developed by another party. We have a content type that uses a text field to store URLs. Then the title and this URL field are used in a view to create links. I don't know why the Link data type was not used. I'm experimenting with this module and the 301 auto-update feature to see if we can use it in production. It works great, even with a text field! However, when the 301 redirect calls for a trailing slash to be added to the URL, 4 slashes are added instead of one. For example:

Recent Log Entries message:

Changed permanently moved link in /mynode from http://www.cdc.gov/nchs to http://www.cdc.gov/nchs/.

But the URL field in the node looks like this:

http://www.cdc.gov/nchs////

Are text fields supported? I checked the changed urls following one cron run and the updates do work much of the time. Thank you.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ann b

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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