Skip to content

[Bug] Widget iFrame: link not redirecting #23199

@web-uni-jena

Description

@web-uni-jena

What happened?

When embedding Matomo widgets as iFrame, according to https://matomo.org/faq/reports/embed-a-matomo-report-in-a-html-page/#customising-the-widgets there is the possibility that links are not opened in the iFrame, but redirect to the Matomo instance (qeuery parameter disableLink). With the widget Campaign Names, no redirection is carried out, but the normal functionality.

Image
Image

What should happen?

If disableLink is set to 1, a click on segmented visit logs or open row evolution should trigger a new window/tab with the target on the matomo instance. Alternatively, the buttons could be hidden completely.

How can this be reproduced?

Use an iFrame like this https://your-matomo-instance/index.php?module=Widgetize&action=iframe&disableLink=1&widget=1&moduleToWidgetize=MarketingCampaignsReporting&actionToWidgetize=getName&period=month&date=yesterday&show_footer=0&idSite=your-site-id&token_auth=your-token

Size of the iFrame: width:620px; height:350px.

Matomo version

5.3.1

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

    Potential BugSomething that might be a bug, but needs validation and confirmation it can be reproduced.triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions