Skip to content

[Bug] Tracked Downloads in RealTime displays not URLDecodedΒ #24225

@1tchy

Description

@1tchy

What happened?

When I track a download from my users which url contains for example an "&", it is not linked correctly in RealTime views. It is URLEncoded (became an "&"). This leads to links I can't follow from Matomo.

A link like
https://example.com/download.pdf?a=b&c=d
would become
https://example.com/download.pdf?a=b&c=d

What should happen?

Clicking the download icon on "real-time displays" should not urlencode the url so I can open it.

How can this be reproduced?

  1. Find/Create a link on the website which contains an "&" character.
  2. Matomo tracks it correctly (you can see and click it with the "&" in visitor logs and the downloads actions site)
  3. On the real-time widget on the dashboard and the real-time page under "visitors":
    3.1. The url on the popup when hovering over the download icon looks correct (with the "&" character)
    3.2. When clicking the download icon it tries to open the download link but replaces the "&" with "&"

Matomo version

5.8.0

PHP version

No response

Server operating system

No response

What browsers are you seeing the problem on?

Firefox

Computer operating system

No response

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementFor new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions