question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No redirect in ContributeView.

See original GitHub issue

When I tried to submit an invalid link, instead of the URL being /contribute/ as it should, it is /thankyou/.

image

Also, shouldn’t the site redirect to /thankyou/ after a successful form submission? Instead of a render shouldn’t it be an HttpResponseRedirect in the ContributeView’s post method? I may be wrong about this, but there is a bug vis a vis the URL.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Bhupesh-Vcommented, Aug 9, 2019

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 ✔️

0reactions
Animesh-Ghoshcommented, Aug 17, 2019

Found a possible fix. Reopening issue.

PR incoming.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django form redirect after POST is unreliable and needed a ...
GET on form view (ContributeView) → returns an empty form; POST on form view (ContributeView) → if invalid, go back to step 1....
Read more >
Sanitizing User Input - Happy Coding
getParameter("content"); //redirect to a GET request response. ... Try entering something like <h1>oh no</h1> into the text input and clicking the Submit ...
Read more >
How to create custom permission level in SharePoint online
For such types of scenarios there is no default permission level ... Click on Site permissions and you will redirect to the permission...
Read more >
The completed genome sequence of the pathogenic ... - NCBI
Here we present the completed genome sequence and annotation of the reference strain PH-1 of Fusarium graminearum, the causal agent of head scab ......
Read more >
Router - JavaScript Framework Libraries for Node.JS - Kado
redirectRequest (res). res {Response} the HTTP response; Return {Function} used to redirect requests ... If there is no view engine false is returned....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found