Is anyone aware of documentation, RFCs, guides or research that can help move a discussion about URL design from opinion and emotion to research, documentation and facts?
Say we're building a traditional non-SPA HTML-based bank application where one can choose between accounts. The currently selected account is UI state. This selected account can be "stored" in (at least) these two ways:
- In the URL like
https://mybank.com/balance?accountID=23423498
orhttps://mybank.com/accounts/23423498/balance
- Somewhere else, e.g. in a cookie or in session state, so that
https://mybank.com/accounts/balance
shows the balance of the currently selected account whatever it may be.
#1 Makes deep links and multiple tabs possible, while #2 yields cleaner/simpler URLs, especially if there are multiple such UI state "dimensions" and makes implementation simpler. In reality we have 1-3 such UI state dimensions at any given time.
It doesn't really matter what my personal opinion on the matter is, because I'm not looking for opinion. My problem is that neither side can back up our "opinion" with links to authoritative documentation, research or design guides that clarify when to use what.
Note: I'm not looking for technical details about how URLs, cookies or sessions work, where they're stored, etc. but about recommendations for when to put this information into URL and when not to.