Nicer error message when consent form is messed with
authorMagnus Hagander <magnus@hagander.net>
Tue, 21 Feb 2023 17:30:24 +0000 (18:30 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 21 Feb 2023 17:30:24 +0000 (18:30 +0100)
commit64287f4baec8b5b5026971542dfc17534ea8fb7a
tree1c595f255c4f4bebc151118b085de4fba6f5c3aa
parente4ac8bd1f9f1f95d178dc26d85401a207c05d997
Nicer error message when consent form is messed with

Instead of an exception complaining about bad style URLs, just ensure
that the URL for the next parameter is always relative. (The form for
consent can only be triggered via one redirect, and it always has the
parameter relative).

We did the right thing before (as in, did not perform a redirect), but
the error dump was not nice.
pgweb/account/forms.py