Fix 404 error when user creates devlog with error and reloads #690
+7
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When a user creates a new devlog with an error and reloads the page, the route will not 404 anymore.
Current behavior:
Fixed behavior:
The rationale for using the alias paths is that this allows the devlog text to be preserved on error, instead of clearing it with a redirect.
Video Demo
https://hackclub.enterprise.slack.com/files/U07B27ZHEJU/F0A5Q0FM2SX/screen_recording_2025-12-28_at_4.28.54___pm.mov
Resolves this Slack #flavortown-help ticket: https://hackclub.slack.com/archives/C09MATKQM8C/p1766465463434559
Additional details to this decision available in the thread