Multisite, logout link is redirecting to base site

I have a multisite installation, and I have a subsite, with a logout link, that adds the appropriate variable "" , but when I click that link, it always redirects me to the main site, and that redirect_to variable gets changed to the main site url, along with a "&reauth=1".
I installed Logout Redirect, and set the url to the subsite, but that does not help.
Does anybody have any insight on this?