spacemeshos / smapp-lite

The light wallet application for Spacemesh network
2 stars 1 forks source link

404 after page reload on create wallet #47

Closed monikasmolarek closed 1 month ago

monikasmolarek commented 1 month ago

Steps:

  1. Click Create new Wallet
  2. on the mnemonics page try to reload (reload / Command+R)
  3. you get the 404

Try the same with one and 2 steps further, on the mnemonics confirmation page and passwords setup, same issue.

The same for the recover wallet from mnemonics and import wallet file.

Screenshot 2024-07-24 at 21 44 16
brusherru commented 1 month ago

Ok, it's doable in two ways:

  1. catch-all should be set on server-side to redirect everything to index.html, and then React will handle it (and basically it will redirect to the first screen)
  2. HashRouter, which will make URLs like wallet.spacemesh.io/#/create/set-password which is probably good enough for us, because we don't need SEO here :)

So I'll replace current router with HashRouter and it should be super quick solution