[Uptime] Modify router to use ScopedHistory#76421
[Uptime] Modify router to use ScopedHistory#76421justinkambic merged 18 commits intoelastic:masterfrom
ScopedHistory#76421Conversation
|
Pinging @elastic/uptime (Team:uptime) |
pgayvallet
left a comment
There was a problem hiding this comment.
LGTM. Thanks for handling this that quickly.
|
|
||
| core.application.register({ | ||
| appRoute: '/app/uptime#/', | ||
| appRoute: '/app/uptime', |
There was a problem hiding this comment.
this optional btw, platform will generate default route. So we can remove this.
There was a problem hiding this comment.
Thanks for pointing this out. I removed it c3fa61b.
shahzad31
left a comment
There was a problem hiding this comment.
It breaks the breadcrumb behaviour clicking uptime from details page trigger full reload.
Glad you noticed this too, any idea what's causing the behavior? I'm having trouble isolating it. |
|
@shahzad31 give it another look I did something similar to APM's solution to this problem: 0e4ff0a |
|
@elasticmachine merge upstream |
…ana into uptime_hashbang-removal
|
@shahzad31 give it another look, I think all is well now. |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💚 Build SucceededBuild metricsasync chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
* Remove hashbang and modify router to use ScopedHistory. * Update test to conform to refactored API. * Update test snapshots. * Fix broken type check. * Remove unneeded prop. * Prevent full page reload for breadcrumbs. * Fix outdated test. * Fix type errors. * Add default value for focusConnectorField url param. * Make stringify function support focusFieldConnector empty values. * Avoid unnecessary text in breadcrumb href. * Refresh test snapshot. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Remove hashbang and modify router to use ScopedHistory. * Update test to conform to refactored API. * Update test snapshots. * Fix broken type check. * Remove unneeded prop. * Prevent full page reload for breadcrumbs. * Fix outdated test. * Fix type errors. * Add default value for focusConnectorField url param. * Make stringify function support focusFieldConnector empty values. * Avoid unnecessary text in breadcrumb href. * Refresh test snapshot. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
|
Backported to: |

Summary
Fixes #76348.
Removes the usage of
BrowserRouterand reliance on hashbang routing.Checklist
Delete any items that are not applicable to this PR.
For maintainers