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: Correcting browser history and adding back button integration #2161

Merged
merged 4 commits into from
Feb 6, 2024

Conversation

nickrandolph
Copy link
Contributor

@nickrandolph nickrandolph commented Feb 1, 2024

GitHub Issue (If applicable): fixes #1998, #2038

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature

What is the current behavior?

No support for back button to drive navigation
Updating address bar adds to browser history, which is meaningless if use navigates back within the app (which will continue to add items instead of removing them)

What is the new behavior?

Address bar support is consistent with the SystemNavigationManager implementation - single item that is updated if there is somewhere to navigate back to
Added back button integration for browser

  • back button is enabled if navigation can go back (ie in a frame within the nav hierarchy)
  • back button is enabled if there's a previous site (eg you navigate from another site to the wasm application)

Both address bar updating and back button usage can be controlled using the NavigationConfiguration class that can be set in appsettings.json

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

@nickrandolph nickrandolph force-pushed the dev/nr/browserhistory branch from b18164a to fd4dc2e Compare February 6, 2024 13:05
@nickrandolph nickrandolph merged commit 21b75cd into main Feb 6, 2024
14 of 15 checks passed
@nickrandolph nickrandolph deleted the dev/nr/browserhistory branch February 6, 2024 14:21
@nickrandolph
Copy link
Contributor Author

@mergify backport stable/release/4.0

Copy link

mergify bot commented Feb 6, 2024

backport stable/release/4.0

❌ No backport have been created

  • Backport to branch stable/release/4.0 failed

GitHub error: Branch not found

@nickrandolph
Copy link
Contributor Author

@mergify backport release/stable/4.0

Copy link

mergify bot commented Feb 6, 2024

backport release/stable/4.0

✅ Backports have been created

nickrandolph added a commit that referenced this pull request Feb 6, 2024
….0/pr-2161

fix: Correcting browser history and adding back button integration (backport #2161)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants