Skip to main content

Hi team, I am a new developer, and I need your help.
I have a website for users with domain app.xxx.com, and a support website with articles support.xxx.com. I am setting my page articles to private access, so if the user is not logged in, they will see the message "Unable to load this article, you may need to sign in first" with the button url.

I am looking for a way that after clicking the button url, it redirects from page support.xxx.com/en/articles/yyy to our login page app.xxx.com, after login it redirects back to the page articles support.xxx.com/en/articles/yyy. i can do that if i add query return_to = support.xxx.com/en/articles/yyy. But each page will have a different url, is there a way i can get the current url address and set it to the button url?

Be the first to reply!

Reply