if (!qstr || !strstr(qstr, "shiblogoutdone=1")) {
// First leg of circuit, so we redirect to the logout endpoint specified with this URL as a return location.
string selfurl = request.getRequestURL();
if (!qstr || !strstr(qstr, "shiblogoutdone=1")) {
// First leg of circuit, so we redirect to the logout endpoint specified with this URL as a return location.
string selfurl = request.getRequestURL();