ExpressionEngine / ExpressionEngine

ExpressionEngine is a flexible, feature-rich, free open-source content management platform that empowers hundreds of thousands of individuals and organizations around the world to easily manage their web site.

Home Page:https://expressionengine.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Structure URL does not render trailing slashes to the screen

CreativePoweredGeek opened this issue · comments

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