Skip to content

Performance report not working from pages report when segment is in use #20030

@taru18

Description

@taru18

Expected Behavior

User should be able to use lower/greater than signs (< >) in segment names.
The pages report should show performance reports whether a segment is in use or not.

Current Behavior

When selecting Performance icon from Pages report when segment is being used, the UI gives an error:
"Error: The segment condition 'actions&gt' is not valid." After this the menu disappears, too.

We found out that if the segment contains a suitable condition such as greater than (>), then the url will contain that character as html-encoded ( & gt; ) and the url of the user interface link will be broken with a semicolon. This only happens from the pages report when clicking the performance icon.

Steps to Reproduce (for Bugs)

  • Rename a segment so it has lower than or greater than sign in the name.
  • Select Performance icon from Pages while also using the renamed segment.

Your Environment

PHP version: 8.0.22
MySQL version: 10.1.36-MariaDB
Matomo version: 4.10.1

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions