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 for goBack when not using micro-frontend without routing #196

Merged
merged 9 commits into from
Nov 6, 2018

Conversation

maxmarkus
Copy link
Contributor

Skip url change in LuigiClient when going back.

@jesusreal jesusreal self-assigned this Nov 5, 2018
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 with angular example using path routing, and navigating from "External Page" (no routing) to "Settings" page and then clicking "go Back" in the settings view. Bug is fixed thanks to the code additions. (Note: I needed to remove # sign in the viewUrl for external page so that Luigi considers there is no hashRouting happening).

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.

Please see my comments, only one small change is requested, bug is fixed.

@@ -109,10 +109,13 @@
var hashRoutingModeActive =
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this variable initialisation to the inner scope of the new if block you created.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@maxmarkus maxmarkus merged commit ca12483 into SAP:master Nov 6, 2018
@maxmarkus maxmarkus deleted the bugfix/go-back-refresh branch November 6, 2018 10:42
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
* skipping navigation when in navigateBack mode
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.

2 participants