-
Notifications
You must be signed in to change notification settings - Fork 15
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
Improved 404 for missing questions #287
Labels
Comments
If #278 is merged, you can get the same error by typing the question's number in the navigation bar. Thus, it makes sense to generalize the message: - If you came here by manually typing in a question ID in the URL, that will not work, as the question IDs are not consecutive.
+ If you came here by manually typing in a question ID, that will not work, as the question IDs are not consecutive. Also, maybe use may instead of will, since sometimes that does work :) - If you came here by manually typing in a question ID, that will not work, as the question IDs are not consecutive.
+ If you came here by manually typing in a question ID, that may not work, as the question IDs are not consecutive. |
Yeah that issue is what made me think of it. I'm getting to that one too btw, but might be some days. I also agree that your suggestion for the error message is better than mine. |
tocic
added a commit
to tocic/cppquiz
that referenced
this issue
Mar 19, 2023
Closes knatten#287. Signed-off-by: tocic <tocic@protonmail.ch>
tocic
added a commit
to tocic/cppquiz
that referenced
this issue
Mar 19, 2023
Closes knatten#287. Signed-off-by: tocic <tocic@protonmail.ch>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The question number in the urls correspond to the primary key in the database. Some have been retracted, some were rejected before they were published, some are not published yet, some don't even exist in the database etc. Every now and then someone expects to be able to increment the id in the url as a way to see all the questions on the site. See e.g. #256, #234, #208, #163
Here's an example for question 10: https://cppquiz.org/quiz/question/10
I suggest we improve the 404 page, so that if one gets to the 404 page due to a question missing (state is not published, or it doesn't exist), we print a better message. In other random missing pages, like https://cppquiz.org/page-that-does-not-exist, we can keep the current one.
Suggestion for message (open to other ideas):
The text was updated successfully, but these errors were encountered: