-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Redirect to full path when calling navigateToApp to a legacy app #65112
Conversation
Pinging @elastic/kibana-platform (Team:Platform) |
Clearly this has broken some things. Putting back into draft. |
I haven't tested the PR, but at least the spaces error (ci group 4) could be caused by the fact that now, if That wasn't the case before, because if the user is on |
Yep you are right 😄 I will have to think of a different solution. Honestly how this was originally implemented was better since it did not require this sort of loopback from history -> router -> app container -> legacy "mounter" |
2e7df63
to
76600a4
Compare
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in Chrome - the "Manage spaces" button works fine with this PR and just redirects to home without it when clicked on a new platform app. LGTM
No thorough code review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
This fixes a bug where calling
navigateToApp
from a KP application to redirect to a legacy application would result in thepath
being lost.This was happening because the "mounter" constructed for legacy applications always redirected to the legacy app's base route rather than the path that was specified in the
navigateToApp
call.Dev Docs
A bug was fixed where calling
core.application.navigateToApp
to a legacy application would not retain thepath
specified.Checklist
Delete any items that are not applicable to this PR.
For maintainers