这是indexloc提供的服务,不要输入任何密码
Skip to content

Fall back on random puzzle when not found #1856

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

Merged
merged 1 commit into from
Oct 16, 2021

Conversation

jas14
Copy link
Collaborator

@jas14 jas14 commented Sep 23, 2021

Closes #1728. Until we implement Puzzles V2, this will provide a better experience for users who click on a /training/<theme> link.

If any of the theme names happen to base62-decode to a real puzzle ID, the app will appear to load a totally unrelated puzzle. I'm assuming that will not happen / it seems more effort than it's worth for now to hard-code all the possible theme names to match against the provided puzzle ID.

Note: no toasts in the below screen recordings because they're on web, for which LiToast isn't implemented.

Before

Screen.Recording.2021-09-23.at.11.02.33.AM.mov

After

Screen.Recording.2021-09-23.at.11.04.14.AM.mov

@veloce veloce merged commit 6a04ce6 into lichess-org:master Oct 16, 2021
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

Successfully merging this pull request may close these issues.

Redirect from browser to app by clicking puzzle gives error
2 participants