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

Fix issue where defaultAppId redirect could fire outside home app #76415

Merged

Conversation

joshdover
Copy link
Contributor

Summary

Fixes #76018

Prior to this change, history.listen could be called after the Home app had already redirected to the defaultAppId. This would throw an exception in ScopedHistory, which would then in turn prevent the Home app's React tree from being unmounted. Since the tree was still active, it would cause the redirect logic to kick in some cases, even when the user was no longer on the Home app.

Move the history.listen call to be before the Home app's React tree is rendered prevents this problem by ensuring that the exception cannot be thrown and the Home app is properly unmounted every time.

@joshdover joshdover added release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 v7.9.2 labels Sep 1, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
home 568.8KB +8.0B 568.8KB

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.9.2 v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Kibana & Obervability Apps Redirect to Discover Page in 7.9.0
4 participants