How to overwrite redirect URL after login in all cases #3881
Replies: 3 comments 9 replies
-
Check out the
|
Beta Was this translation helpful? Give feedback.
-
Thanks much but can you give me say a code piece
I already cited that is_safe_url is deprecated or is there a method in
django-all auth that is so
What functions or other method should I target
Some code base would be much appreciated
…On Tue, 29 Oct 2024 at 19:39, Raymond Penners ***@***.***> wrote:
@iamunadike <https://github.com/iamunadike> If you find that some next
URLs work, and some don't, then the only logical explanation I can think of
is the is_safe_url(). So even if you have set up ALLOWED_HOSTS correctly,
do give it a try and override is_safe_url() and just return True for
testing purposes, regardless of the input. Other than that, I have no idea
what is going on in your case, so if that does not work, you'll have to do
some debugging...
—
Reply to this email directly, view it on GitHub
<#3881 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALRDXFRZ4DVZ4MNUAOTW5UDZ57I6VAVCNFSM6AAAAABJCX6X76VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBZGEZDCNI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hello @pennersr |
Beta Was this translation helpful? Give feedback.
-
We have to overwrite the redirect URL for all login actions via social account, even if
next
is set. Does anyone know how to do this?Beta Was this translation helpful? Give feedback.
All reactions