-
Notifications
You must be signed in to change notification settings - Fork 174
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
Conversation
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 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).
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.
Please see my comments, only one small change is requested, bug is fixed.
client/luigi-client.js
Outdated
@@ -109,10 +109,13 @@ | |||
var hashRoutingModeActive = |
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.
Please move this variable initialisation to the inner scope of the new if
block you created.
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.
done
…nto bugfix/go-back-refresh
* skipping navigation when in navigateBack mode
Skip url change in LuigiClient when going back.