Skip to content

Structure trailing slash bug #5055

@micahkohne

Description

@micahkohne

There seems to be a bug with trailing slashes on listings in Structure.

Steps to reproduce the behavior:

  1. Install Structure
  2. Set "Add Trailing Slash to Page URLs" to "Yes" in module settings
  3. Create a channel and set it as a "Listing" type in the Structure Channel Settings
  4. Create a channel and an entry to hold the listings (listing channel set in entry)
  5. Create a template with a channel tag to show listings with links to individual entries.
  6. Using {page_url} does not include the trailing slash. Using {page_uri} does show the trailing slash, but when you add a new entry the trailing slashes are removed.
  7. Resaving the entry that holds the listings will then add the trailing slashes back

Screen capture of the bug
Video of the bug at this link: https://www.loom.com/share/45276a79f4b749d280aeaca88adc8787

Environment Details:

  • EE Version: 7.5.17
  • PHP Version: 8.2.26
  • MySQL Version: 8.0
  • OS: macOS
  • Web Server: MAMP, Apache

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: AcceptedBug has been confirmed, is reproducible, and ready to work on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions