Skip to content

[Error] Fix 404 on /resources/comments/ by redirecting GET requests to /posted/ (Closes #223) #268

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

SaiBhaskar0987
Copy link
Contributor

Closes #223

Checkpoints:

  • Added a redirect for GET requests to /resources/comments/ so it no longer returns a 404 error.
  • Now, visiting /resources/comments/ via GET will redirect to /resources/comments/posted/, which is a valid endpoint.
  • Included the redirect before the include('django_comments.urls') line to avoid conflict.
  • No changes were made to comment logic or POST behavior.

@@ -44,6 +45,7 @@
path('contact/', TRM_views.contact, name="contact"),
path('comingsoon/', TRM_views.comingsoon, name="comingsoon"),
path('jobs/', TRM_views.job_board, name="job_board"),
path('resources/comments/', comments_entrypoint),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this for?

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.

Page not found (404) for resources/comments
2 participants