-
-
Notifications
You must be signed in to change notification settings - Fork 663
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
Implement ui.navigate functionality #2593
Conversation
…orward()` and`ui.navigate.to` methods.
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.
Maybe we should implement it inside a class instead of free functions. That would allow replacing/updating the implementation for single page applications (SPAs) for example.
@falkoschindler I think it's better to not print warnings when using I've meddled a bit with the documentation structure and internals to make sure https://nicegui.io/documentation/open is not showing a 404. |
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.
From my side it's ready to merge.
This PR adds the
ui.navigate
module, which includes theui.navigate.back()
,ui.navigate.forward()
, andui.navigate.to()
methods. These methods allow for programmatic navigation within the browser history and redirecting to specific URLs or page functions.Feature request: #2575