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

Tutorial pages fail to handle "?solved" query string parameter when reached directly without cache #97

Closed
bobaekang opened this issue Jul 5, 2021 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bobaekang
Copy link
Contributor

On tutorial pages, clicking "Solve" button on bottom left updates the code to display the "solution" to the tutorial problem. In addition, it appends the ?solved query string to the URL: e.g. https://www.solidjs.com/tutorial/introduction_basics?solved.

When users try to reach the solution directly using the URL, however, the server returns 500 response with the following payload:

"could not find tutorial/introduction_basics/index.html in your content namespace"

After trying with multiple browsers, I noticed that the problem goes away once the solid site is cached. This, however, can still be an issue when the URL with ?solved is shared to someone who has never visited the site before or uses a browser that automatically clears all cached files. E.g. I use Firefox on the "Always use private browsing mode" as my main browser, and see the 500 response every time I try a tutorial page URL with ?solved.

@davedbase davedbase added bug Something isn't working help wanted Extra attention is needed labels Jul 10, 2021
@davedbase
Copy link
Member

I spent some time investigating but basically gave up. I've reached out to the Cloudflare Community for additional support: https://community.cloudflare.com/t/issue-with-query-string-on-an-spa-in-workers/287753. We'll wait to hear back from them with a solution.

@bobaekang
Copy link
Contributor Author

Closing this since the raised issue has been resolved. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants