We have moved to Github. Please open tickets there.

Opened 10 months ago

Closed 5 months ago

#4783 closed Feature Request (worksforme)

Logout should return to referer

Reported by: sembrestels Owned by:
Priority: normal Milestone: Needs Review
Component: Core Version: 1.8
Severity: minor Keywords: logout
Cc: brett@… Difficulty: trivial

Description

Anybody feels the same?

Change History (5)

comment:1 Changed 10 months ago by ewinslow

I can think of a few logical places to go after logout:

  1. Referrer
  2. Dedicated logout page
  3. Home page

comment:2 Changed 10 months ago by sembrestels

I like referer because of this use case: You are connected with userA and you want to comment/do something in a page with userB. Returning to referer you avoid click back in the browser to return to the page you want to comment.

comment:3 Changed 9 months ago by ewinslow

We could make the referrer the default but then provide a way to customize it, either via the admin interface or just a plugin/hook.

comment:4 Changed 9 months ago by ewinslow

Meh, just thought of something: some pages are only visible to logged in users. Forwarding them to the homepage avoids them getting an error message if they don't have access to the referrer.

comment:5 Changed 5 months ago by cash

  • Resolution set to worksforme
  • Status changed from new to closed

Evan's reason is why we forward to the homepage. You can register for the forward plugin hook if you want to forward elsewhere.

Note: See TracTickets for help on using tickets.