Skip to content

Category Heading Tag does not work with hyphenated url titles #5269

Description

@anthony8bc

Description of the problem
Using the {exp:channel:category_heading} tag with a category_url_title="" parameter does not work when the url title contains two or more hyphenated words.

How To Reproduce
Does not work:
{exp:channel:category_heading category_url_title="multi-word-category" channel="products"}

Works:
{exp:channel:category_heading category_url_title="multiwordcategory" channel="products"}

Error Messages
None

Screenshots / Videos / Template Code
Snippet in actual use, below. Have tested by hard-coding the category url title (instead of segment_2) with same results. Nothing returned.

            {exp:channel:category_heading category_url_title="{segment_2}" channel="products"}
                {category_name}
            {/exp:channel:category_heading}

Environment Details:

  • Version: 7.5.21
  • PHP Version 8.4
  • MySQL Version 8.2
  • OS: Windows
  • Web Server: WAMP

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: UnconfirmedBug report that is not yet confirmed and/or is not reproducible.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions