fixed some issues with /domain when logged in and ?id= present