Visiting an unknown session will give an error in the UI, due to the Hub returning an exception, instead of redirecting to a 404 page, telling the user that the session does not exist.
Steps to recreate:
- Access https://justplanningpoker.com/server/this-session-probably-does-not-exist
- Observe.
Resolution:
Either A or B
A:
Implement proper on failure handling in the Join Hub method, and handle this state in the UI when attempting to join a server, by redirecting to a 404.
B:
Implement an Exists endpoint in the Hub, which the UI will call prior to attempting to join the server. If the server does not exist, redirect to a 404.