FIX: Correctly redirect after external login on subfolder sites (PR #10529)

GitHub