How to configure destination URL, after user logout of Piwik
|Reported by:||BrainCrumbz||Owned by:||matt|
|Priority:||major||Milestone:||1.12 - The Great 1.x Backlog|
|Component:||Core||Keywords:||login logout redirect|
One of our customers has a requirement to redirect the user to a specific URL after s/he logs out.
After some research, we see that the destination is fixed to Piwik::redirectToModule('CoreHome'); within Piwik_Login_Controller.logout action in Login plugin.
First preliminary question: is this an interesting feature that could go into Piwik code-base?
If so, we'd like to change the code so that it can be suitable for submission.
One option would be to change that same method in Login plugin, and take advantage of a new configuration variable. The change in pseudo-code would be:
get value for configuration variable named "logout_redirect_URL" if variable not found, or value empty then redirect to module CoreHome, as default else redirect to URL specified in configuration
The second option would be to inherit a new plugin from Login, say ConfigurableLogin, and override just the logout method in the same proposed way.
Have you got any suggestion about it?
Change History (5)
comment:2 Changed 12 months ago by matt (mattab)
- Milestone set to 1.10 - Piwik 1.10
- Owner set to matt
- Priority changed from normal to major
- Summary changed from Configure destination URL after logout to How to configure destination URL, after user logout of Piwik