Visitor Profile Popup doesn't include token_auth in the widgetized link #16321
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Waiting for user feedback
Indicates the Matomo team is waiting for feedback from the author or other users.
Milestone
Expected Behavior:
Clicking on the visitor id of the Visitor Profile Popup should open the Visitor Profile in a separate window, when the Visitor Profile Popup is rendered as a widget that includes a
token_auth
query string parameter.Actual Behavior:
Cicking on the visitor id of the Visitor Profile Popup opens the Sign In screen in a separate window and there is no token_auth in the query string.
Details:
I am embedding the visit log as a widget in an external site that uses token_auth to render the widget in an embedded iframe.
The widget renders fine.
If you click the "View visitor profile" link on any of the visits, the Visitor Profile Popup renders fine.
On the Visitor Profile Popup, if you click on the visitor id, the target of that anchor tag is "_blank" and that opens to the sign-in screen, as the token_auth is not included in the link. If the token_auth is manually added to that link, the profile renders as expected.
The link in
plugins/Live/templates/getVisitorProfilePopup.twig
is built in.../Live/Controller.php
in thesetWidgetizedVisitorProfileUrl($view)
function. It does not include thetoken_auth
parameter that is included in the iframe's src url.That's as far as I've gotten as I'm not very familiar with php and twig.
The text was updated successfully, but these errors were encountered: