Skip to content

Conversation

LunarShadow15
Copy link
Contributor

FIXES #145

  1. This PR Fixes issue Add Redirection to awards page when awards are opened on an index that does not exist! #145
  2. This PR modifies the views.py file of the awards application to apply the logic for Redirecting to the /awards/ page if user opens the awards page on a non-existent index.

PROOF THAT THE CHANGES ARE CORRECT

Screenshot 2024-06-01 210358

Screenshot 2024-06-02 161425

Thank You

@SamakshAgarwal1112
Copy link
Collaborator

@LunarShadow152004 Instead of rendering a new award page, redirect to /awards/ page. Right now you're rendering a new page at /awards/<index-number>/ instead of redirecting to /awards/.

Now I have redirected to /awards/
@LunarShadow15
Copy link
Contributor Author

@SamakshAgarwal1112
Now I have corrected it.

20240602230104.mp4

@SamakshAgarwal1112
Copy link
Collaborator

@LunarShadow152004 Changes pretty much looks fine. Will review once more to see if more changes are needed.

@SamakshAgarwal1112 SamakshAgarwal1112 merged commit 6d8bf50 into BitByte-TPC:master Jun 5, 2024
@NightFury742 NightFury742 added difficulty - easy BSoC'24 Issues available during BSoC 2024 labels Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BSoC'24 Issues available during BSoC 2024 difficulty - easy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Redirection to awards page when awards are opened on an index that does not exist!

4 participants