Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode current view info (i.e. month/week/day) in the URL #262

Open
kylecombes opened this issue Oct 7, 2020 · 0 comments
Open

Encode current view info (i.e. month/week/day) in the URL #262

kylecombes opened this issue Oct 7, 2020 · 0 comments

Comments

@kylecombes
Copy link
Collaborator

Right now only the currently visible labels are encoded in the URL (meaning you can refresh the page or share the link and the visible labels are preserved). It would be great if the view mode (i.e. month, week, day) and the month/day/etc being viewed was encoded in the URL so that reloading the page or sharing the link resulted in the same exact view of the calendar popping back up.

Relevant libraries:

While the labels are encoded in the URL, I don't recall if that's done the proper way with React Router. You can look at the labels code for inspiration, but I wouldn't necessarily consider it to be done right. Prefer the style in the React Router docs.

@kylecombes kylecombes changed the title Month being viewed is not encoded in the URL Encode current view info (i.e. month/week/day) in the URL Oct 7, 2020
@ridunoff ridunoff self-assigned this Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants