Closed Animesh-Ghosh closed 4 years ago
After a successful form submission, it renders the correct template and the correct URL is generated.
The above-mentioned bug is still there.
When I tried to submit an invalid link, instead of the URL being /contribute/ as it should, it is /thankyou/.
Yes the URL persists, I would have to take a different approach for this, Thanks for reporting.
Fixed in commit :heavy_check_mark:
The contribute form should properly redirect to the /thankyou/
URL.
Check this link for the redirect
shortcut.
Reopening this issue.
Closing since I couldn't find any better alternatives.
May be reopened if a better alternative implementation for ContributeView is found/made.
Found a possible fix. Reopening issue.
PR incoming.
When I tried to submit an invalid link, instead of the URL being
/contribute/
as it should, it is/thankyou/
.Also, shouldn't the site redirect to
/thankyou/
after a successful form submission? Instead of arender
shouldn't it be anHttpResponseRedirect
in the ContributeView'spost
method? I may be wrong about this, but there is a bug vis a vis the URL.