You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realise this is 7 years later but I've just been looking at something related.
The flag() view accepts a next URL parameter but doesn't do anything with request.GET data. So if the POST form has a next field, that's used. But if the GET request's URL has ?next=/someurl that gets ignored.
The same is true of the other views in views/moderation.py.
It appears from looking at the code that I should be able to do something like:
But when I'm on the "Really flag this comment?" page, the hidden 'next' form entry isn't populated.
If (instead of linking) I do a form that POSTs to {% url 'comments-flag' comment.pk %} with my own 'next' field, it does work.
The text was updated successfully, but these errors were encountered: