Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow developers to set the URL that users will be directed to after they log out #4777

Closed
CaMer0n opened this issue May 22, 2022 · 0 comments
Labels
topic: documentation type: enhancement An improvement or new feature request
Milestone

Comments

@CaMer0n
Copy link
Member

CaMer0n commented May 22, 2022

Motivation

At present, e107 always sends the user to the home page after logging out. (even from the admin area)
This is not always a desired outcome for the developer.

Proposed Solution

Allow the developer to set the URL for after logout using the existing method:

e107::getRedirect()->setPreviousUrl()

To date, this has only been utilized for setting the URL for after login, as found in login.php:

$prev = e107::getRedirect()->getPreviousUrl();

if(!empty($prev))
{
	e107::redirect($prev);
	exit();
}
@CaMer0n CaMer0n added the type: enhancement An improvement or new feature request label May 22, 2022
@CaMer0n CaMer0n added this to the e107 2.3.3 milestone May 22, 2022
@CaMer0n CaMer0n closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation type: enhancement An improvement or new feature request
Projects
None yet
Development

No branches or pull requests

1 participant