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

Use an anchor link to go directly to a level (update link when completed) #210

Open
ADTC opened this issue Apr 20, 2021 · 2 comments
Open

Comments

@ADTC
Copy link

ADTC commented Apr 20, 2021

It would be nice for bookmarking if an URL like http://flexboxfroggy.com/#20 would go directly to Level 20.

Also when completing a level, the URL in the address bar would be updated to reflect. For example, on completing Level 20 and loading Level 21: http://flexboxfroggy.com/#21

This may negate the need to store the level number in the local storage, which for me failed to restore to my last active level when my browser crashed and rebooted. The anchor link wouldn't have had that problem since the browser stores it in the session restore data.

Or both solutions could be used in tandem: If I open http://flexboxfroggy.com/ it loads the level in the local storage, but if I use an anchor link, it loads the level in the anchor.

@thomaspark
Copy link
Owner

Hey @ADTC, this would be a handy addition, though anchors are already used to set language, so another approach may need to be taken.

@ADTC
Copy link
Author

ADTC commented May 6, 2021

Thanks for acknowledging. Could you mix it?

.../      - English Lesson 1
.../#2    - English Lesson 2
.../#fr   - French Lesson 1
.../#fr#2 - French Lesson 2

PS: I didn't see any language selector in the user interface of the website. Is it only automatic based on location currently? I think having a language selector is important. (What if I traveled to France and accessed your site there, but I don't speak French?)

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

2 participants