How to configure destination URL, after user logout of Piwik #3637
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Major
Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone
Hello all.
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');
withinPiwik_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:
The second option would be to inherit a new plugin from
Login
, sayConfigurableLogin
, and override just thelogout
method in the same proposed way.Have you got any suggestion about it?
Thanks all
Keywords: login logout redirect
The text was updated successfully, but these errors were encountered: