Add a hook to allow plugins to define the website ID to load by default when going to stats
|Reported by:||aaabbb2||Owned by:|
|Component:||Core||Keywords:||idSite, login, domain, subdomain|
I have 1 piwik installation running 3 sites. I have mapped the server alias of stats.domainname to /usr/share/piwik. But, no matter which site I login on, I'm always given the first site I made as my starting idSite.
It would be a really nice enhancement to look at the domainname for the URL and try to find a match in the list of registered sites and select that idSite by default. This would only be done on login. Having this small feature would make setups like mine seem to function just a tiny bit slicker.
try to find the part before .com or .co.uk but after www. or stats.
find idSite by soundex() match to list of sites
if not found, choose idSite normally
Change History (11)
Changed 5 years ago by aaabbb2
comment:6 Changed 5 years ago by matt (mattab)
- Summary changed from Automatically select idSite from HTTP_HOST when logging in to Add a hook to allow plugins to define the website ID to load by default when going to stats
comment:8 Changed 5 years ago by matt (mattab)
- Milestone changed from 2- DigitalVibes to 2 - Piwik 0.5
comment:9 Changed 4 years ago by vipsoft (robocoder)
- Milestone changed from 1 - Piwik 0.5 to 1 - Piwik 0.5.1