Problem/Motivation

There is an unusual behavior observed after logging out and being redirected to the front page.

Steps to reproduce

1. Log in using Office 365.
2. Click on 'Logout' (user/logout).
3. User is redirected to Microsoft's sign out screen with the message 'You signed out of your account'.
4. Upon returning to the site, the user remains logged in, even after closing the browser.

Proposed resolution

In the public function logout() :
from:
Url::fromRoute(''
to:
Url::fromRoute('user.logout');

This has already been tested in the production environment.

2- It might be a nice addition to have the option to specify where the user should be redirected after logging out?

Thanks for this great module!

Issue fork o365-3415890

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Freddy Rodriguez created an issue. See original summary.

abhishek_gupta1 made their first commit to this issue’s fork.

abhishek_gupta1’s picture

Status: Active » Needs review

@Freddy Rodriguez , I have fixed the issue and created MR. please kindly review it

batigolix’s picture

Issue tags: +finalist-sprint
fabianderijk’s picture

Assigned: Unassigned » fabianderijk

  • fabianderijk committed 06436059 on 5.0.x
    Issue #3415890 by abhishek_gupta1, Freddy Rodriguez, batigolix: Logout...
fabianderijk’s picture

Status: Needs review » Fixed

I've checked the fork, and adjusted the code to make it work. All works now like it should. The code has been pushed in the dev release and will be added in the upcoming tagged release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.