impierce / identity-wallet

A Tauri-based Identity Wallet for people to manage Decentralized Identities and Verifiable Credentials.
https://www.impierce.com
Apache License 2.0
17 stars 4 forks source link

[Bug] "Back" navigation to unexpected screen #134

Open daniel-mader opened 4 months ago

daniel-mader commented 4 months ago

Description

Navigating back to the previous page is currently done by simply calling the native window history like so:

<TopNavBar on:back={() => history.back()} />

While this works in most cases, there are special scenarios:

A possible solution is to remove the last entry from the history (using a wrapper around replaceState() or similar) when programmatically redirecting the user. It is unclear if there's a generic solution to this that solves the problem for all cases, or if one would have to handle it for each case of goto() redirects individually.

Hardware Specification

No response

Steps to Reproduce the Bug

  1. Settings > My profile > Profile name > Update
  2. Tap the arrow left in the top navigation bar
  3. You're being taken back to the profile name update page (not expected)

Expected Behaviour

Being redirected back to the page you visited before opening settings

Actual Behaviour

see above

Errors

n/a

maiertech commented 1 month ago

Example: On route /welcome/password/completed it should not be possible to navigate back.

maiertech commented 1 month ago

Example: When navigating back from a credentials page, you always end on the overview page in the All tab.