fulcro-rad
fulcro-rad copied to clipboard
Routing `:back` doesn't work well
The current routing support has several elements that allow for generalized routing, but the :back
support doesn't work if the user comes to a page from a bookmark. Nothing in the URL parameters define what :back
means, and this causes it to do nothing, leaving the user stranded.
Possible solutions:
- Deprecate
:back
and recommend the new support for lambdas that can calculate the route (which is also more tolerant of refactoring) - Store some about of information in the URL params for processing back. The problem with this is it could lead to information of an arbitrary depth (very large URIs)
- Use local storage: doesn't work across browsers (copy URL from one to another)
At the moment I thing the first is the only option that really makes sense.
I think the work I already did supporting lambdas is the right answer (deprecate back). Just needs docs.
Documented.