Skip to content

Structure URL does not render trailing slashes to the screen #4344

Description

@CreativePoweredGeek

Description of the problem
Structure: In my Rich Text fields (RedactorX specificly) when I add a link & select a Structure page, the link it inserts has a trailing slash on it (for example '/resources/trail-maps/'). I have enabled "Show trailing slash' in the Structure preferences. However, when it renders on the page it it renders the full URL in the code but WITHOUT the trailing slash. Am I missing a setting? or is this a bug? Trailing slashes are my norm on my sites but this tosses url structures I don't intend into the mix (I noticed this in Screaming Frog)

How To Reproduce
Be sure "Show trailing slash' is enabled in the Structure preferences.
using a RedactorX RTE add a link to the copy from the structure links dropdown. save it and review the raw HTML... you will see it has the trailing slash.

Save it & then view the page in the Web browser you will see it renders the full uRL but WITHOUT the trailing slash.

Error Messages
No Error messages

Screenshots / Videos / Template Code

Environment Details:

  • Version: 7.4.9
  • PHP Version 8.1.13
  • MySQL Version 5.8 (I think)
  • OS: Linux
  • Web Server: Apache

Possible Solution

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions