I’ve implemented DiscourseConnect in my forum with success, but now I need to display terms of service.
My idea was to show a modal with terms and an accept button, something like a cookie consent), but I couldn’t find that option (plugin) so I must create a workaround.
Let me describe my idea:
Currently, when someone enters my website, let’s call it https://forum.example.com
he sees the login button in the top right corner.
When he clicks on the login button he is redirected to https://forum.example.com/session/sso?return_path=%2F
, then he is redirected to my custom login page and after successful login in he return to the forum.
I want to return the user to a different place, so ideally I’d like to redirect the user to https://tos.example.com
.
I know I can create a link https://forum.example.com/session/sso?return_path=https://tos.example.com
, but how can I change the login button on the forum so it will have a specific value in return_path
(always the same)?
Is there a global option for that?
I’m aware this value reflects the current place where the user is on the forum (so he can get back to the same please when he logs in), but can this be changed?