fulcro-rad icon indicating copy to clipboard operation
fulcro-rad copied to clipboard

Routing `:back` doesn't work well

Open awkay opened this issue 3 years ago • 1 comments

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.

awkay avatar Oct 18 '21 18:10 awkay

I think the work I already did supporting lambdas is the right answer (deprecate back). Just needs docs.

awkay avatar Oct 21 '21 06:10 awkay

Documented.

awkay avatar Dec 27 '22 06:12 awkay