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

logout should redirect to a configurable route/path #191

Closed
splendido opened this issue Dec 5, 2014 · 1 comment
Closed

logout should redirect to a configurable route/path #191

splendido opened this issue Dec 5, 2014 · 1 comment

Comments

@splendido
Copy link
Member

Currently AccountsTemplates.logout() redirects to the configured homeRoutePath.
See this line

Possible solutions:

  1. Another configuration parameter (say logoutRedirectPath) to allow for custom redirection.

2 .Doing something like it was done with ensureSignedIn (see this commit): add logout among the configurable routes so to be able to leverage the redirect field of the options. This would be the second fake route for which most of the options are ignored...

@splendido splendido changed the title logount should redirect to a configurable route/path logout should redirect to a configurable route/path Dec 12, 2014
splendido added a commit that referenced this issue Dec 12, 2014
@splendido
Copy link
Member Author

now onLogoutHook can be used to override the default redirect to homeRoutePath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant