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

Put the app's state in the URL, to make it linkable/sharable #29

Open
sirtet opened this issue May 13, 2022 · 1 comment
Open

Put the app's state in the URL, to make it linkable/sharable #29

sirtet opened this issue May 13, 2022 · 1 comment

Comments

@sirtet
Copy link
Collaborator

sirtet commented May 13, 2022

If i see a certain cool pic. that i want to share somewhere, i currently can't.
We need the parameters of current-image, date- and time- range in the url.

@sirtet
Copy link
Collaborator Author

sirtet commented Feb 18, 2023

If state is in the URL, should the App be navigable via history?
(eg. browser-back to go to previous image)
Probably not.
So maybe only provide a URL with the current state via a Share-Button, and not have it in the url by default?
If so, what happens if that URL with state-info is loaded?
(after a user opens that shared URL)
Probably the app would only read it at startup, then ignore it?
Might be confusing later for a user, if the state is different then what's seen in the Browsers URL-bar.
So maybe after reading, the App should rewrite the URL, removing state-info?

I guess there are best practices for these Questions to be found online...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant