Redirects when posting a comment

When posting a comment on one of the subsites as a logged in user, the page redirects to the homepage. However when doing it as a non-logged in user it works fine.