Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vue] fix back button to dashboard #19631

Merged
merged 1 commit into from Aug 16, 2022
Merged

Conversation

diosmosis
Copy link
Member

Description:

There was an optimization in 4.x-dev that manually loaded the dashboard if changing the page to a dashboard and the piwik-dashboard element was present on the page. During the migration to Vue, this was changed to always apply the optimization even if the piwik-dashboard element is not present (the bug). This causes a bug where the dashboard does not load when going back to it (or when loading the page explicitly after it has been loaded).

To reproduce:

  • load dashboard
  • change to a different reporting page
  • hit back, see that nothing changes

This PR fixes the issue by removing the optimization. I verified on 4.x-dev, the piwik-dashboard element simply isn't on the page at the same time anymore, so whatever hacky code this was before is not actually used now.

Review

…wik-dashboard element is present. the element no longer exists in 4.x-dev, so the hack does not actually do anything now
@diosmosis diosmosis added Needs Review PRs that need a code review Regression Indicates a feature used to work in a certain way but it no longer does even though it should. labels Aug 16, 2022
@diosmosis diosmosis added this to the 5.0.0 milestone Aug 16, 2022
@diosmosis diosmosis requested a review from sgiehl August 16, 2022 00:35
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to reproduce the issue on 5.x-dev and able to validate the fix on this branch 👍

@sgiehl sgiehl merged commit a9231fd into 5.x-dev Aug 16, 2022
@sgiehl sgiehl deleted the vue-fix-back-button-to-dashboard branch August 16, 2022 11:44
@justinvelluppillai justinvelluppillai added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Sep 29, 2022
bx80 pushed a commit that referenced this pull request Nov 25, 2022
…wik-dashboard element is present. the element no longer exists in 4.x-dev, so the hack does not actually do anything now (#19631)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Regression Indicates a feature used to work in a certain way but it no longer does even though it should.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants