When you're on my knowledge base as an anonymous user, then log in, you get redirected to my company's other website (vanillasoft.net is my company's "product" and support.vanillasoft.com is the knowledge base). So, if you aren't logged in to our product but visit the knowledge base, then log in from there, you get sent to the product and have to navigate back to the knowledge base.
I tried to find the script for this but couldn't find anything that made sense to me. So let me know what you would need and I would be happy to provide.
Also, to note, this issue has always been this way from before I took over this stuff. It happens in a default Copenhagen theme or a custom theme. I hope I'm not too confusing with my attempt at explaining this issue.
Any help is much appreciated!