Correctly pass subdomain through state.