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 path routing #500

Merged
merged 8 commits into from
Jul 31, 2019
Merged

Fix path routing #500

merged 8 commits into from
Jul 31, 2019

Conversation

y-kkamil
Copy link

@y-kkamil y-kkamil commented Apr 26, 2019

Description

Changes proposed in this pull request:

  • Fixes the problem with reloaded micro frontend view when using path routing

Related issue(s)

https://github.com/kyma-project/console/issues/798, which includes the steps to reproduce the issue.

@y-kkamil y-kkamil closed this Apr 26, 2019
@y-kkamil y-kkamil reopened this Apr 26, 2019
@y-kkamil
Copy link
Author

Fixes #491

@y-kkamil
Copy link
Author

Checked for angular/vue/react routers. Please test for any use case you can think of. ;)
Unfortunately, https://github.com/kyma-project/console/issues/798 still persists.

@jesusreal jesusreal self-assigned this Apr 29, 2019
@maxmarkus maxmarkus added area/luigi bug Something isn't working labels Apr 29, 2019
@jesusreal jesusreal removed their assignment Apr 30, 2019
@maxmarkus maxmarkus added this to the Sprint_Swinka_13 milestone May 3, 2019
@hardl hardl removed the area/luigi label May 15, 2019
@jesusreal jesusreal added the WIP Work in progress label May 22, 2019
@jesusreal
Copy link
Contributor

jesusreal commented May 22, 2019

This issue is still blocked until https://github.com/kyma-project/console/issues/798 is solved.

@hardl hardl modified the milestones: Sprint_0, Sprint_1 Jun 12, 2019
@jesusreal jesusreal removed this from the Sprint_1 milestone Jun 17, 2019
@jesusreal jesusreal added this to the Backlog milestone Jun 17, 2019
@CLAassistant
Copy link

CLAassistant commented Jul 3, 2019

CLA assistant check
All committers have signed the CLA.

@y-kkamil
Copy link
Author

y-kkamil commented Jul 24, 2019

react-router uses a library called history internally. https://github.com/ReactTraining/history/blob/master/modules/DOMUtils.js#L53 --> this is the line that was causing problems for console. Adding state to PopStateEvent makes the expression evaluate to false, which in turn lets the router take care of route change.

@jesusreal jesusreal removed the WIP Work in progress label Jul 25, 2019
@jesusreal jesusreal self-assigned this Jul 26, 2019
Copy link
Contributor

@jesusreal jesusreal left a comment

Choose a reason for hiding this comment

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

Tested it with Kyma console, Catalog node, navigating between the Services and the Addons tab. It works 👍

@marynaKhromova marynaKhromova self-assigned this Jul 29, 2019
Copy link
Contributor

@marynaKhromova marynaKhromova left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@jesusreal jesusreal merged commit c879efd into SAP:master Jul 31, 2019
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants