urweb / upo

The Ur/Web People Organizer
http://upo.csail.mit.edu/
Other
29 stars 15 forks source link

"tabbed" doesn't keep track of active tab when reloading the page #20

Open mdempsky opened 4 years ago

mdempsky commented 4 years ago

In onlineconf, if you have the "Chat list" tab open and reload the page, you're taken back to the "Calendar" tab. I think it would be nicer to keep the "Chat list" tab open.

Similarly, clicking a tab and then clicking the back button doesn't take you back to the previous tab; it takes you to the previous page.

Often, web frameworks handle this using a "router" component that's responsible for serializing app state with the browser's session history using the History API (https://developer.mozilla.org/en-US/docs/Web/API/History) and PopStateEvents (https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent).

achlipala commented 4 years ago

Interesting! Yeah, that feature sounds handy indeed. Any interest in working out how to implement it yourself?