Fix incorrect share URL routing
See haskell-gargantext#375 (closed) for details.
I'm not a Purescript expert, let alone a React one, so let me know if this could be improved.
The key bit is that we need to write the Backend
in its box before we inject the routes in window
, as we need to know our "provenance" when we try to match the correct session with the current instance we are connected to.