Issue #19289 Tweak index load paths and fix logout.