Is there a simple way to change URL after user clicks a button? #309
Answered
by
adamghill
liamlawless35
asked this question in
Q&A
-
Title. I want to make it so that the url is changed when the user clicks a button. Does anyone know if there's a simple way to do this? Is there some way to override unicorn's Javascript to add a small custom method for changing urls? (In case you can't tell I have no idea what I'm doing) |
Beta Was this translation helpful? Give feedback.
Answered by
adamghill
Dec 6, 2021
Replies: 1 comment 1 reply
-
You can use https://www.django-unicorn.com/docs/redirecting/#locationupdate to update the URL without actually redirecting the user. Let me know if that doesn't work for you! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
liamlawless35
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use https://www.django-unicorn.com/docs/redirecting/#locationupdate to update the URL without actually redirecting the user. Let me know if that doesn't work for you!