-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add a referer header when new issues are created and redirected to issue page #1276
Comments
Hi @miketaylr I would like to work on this |
Cool! We might want to get @karlcow to review these patches when they're ready. |
…ted and redirect to issue page
I will remove the Some background. An HTTP POST is not idempotent and not safe. It means that two subsequent In #1273, @miketaylr implemented a way to
He is doing the Thanks message by storing in session a keyword with the value True. session['show_thanks'] = True
return redirect(url_for('show_issue', number=response.get('number'))) This is then used in webcompat.com/webcompat/views.py Lines 208 to 217 in 5fdbb0d
What I suggested in my comment is that instead of storing a session for this flash message. We just use the fact that we show the flask message only when we come from Things to do:
|
That was a great explanation. Thank you so much. Now, inside Please correct me if I am wrong. |
@nj4710 You are always welcome to work on things. And if you can't finish for any reasons it is ok too. And we will help along the way or find a solution together. 🆒 |
…ted and redirect to issue page
I tried to complete the show_issue task. r? @karlcow |
(Our process is to create a PR and ask for review in that, rather than a comment in a bug. :)) It's also OK to open up a PR and ask for feedback as you're developing things, before things are 100% ready for review. |
…ted and redirect to issue page
…ted and redirect to issue page
See my comments in @nj4710 Pull Request My initial idea was bad and that was discovered by exploring the pull request of @nj4710 I'm closing the issue as wontfix. Thanks. |
See #1273 (comment)
We can use that as a signal to show the "Thanks!" flash message, rather than the current (hacky, imo) solution of using
session
.See https://github.com/webcompat/webcompat.com/blob/master/webcompat/views.py#L214 and all other instances of
session['show_thanks'] = True
The text was updated successfully, but these errors were encountered: