Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2325 closed New feature (fixed)

Piwik URL should be auto-detected and cached in DB

Reported by: matt Owned by:
Priority: normal Milestone: 1.4 - Piwik 1.4
Component: Core Keywords:
Cc: Sensitive: no


In some cases, Piwik_Url will not return the current Piwik URL, for example when running from shell/cron sometimes the value is not available.

So far it hasn't been a problem so much as only the From: email would use the domain name. See faq:

however, with Email reports coming soon, they will need to know the URL to link the icons / Piwik logo to the piwik server generating the reports.


  • during install/update, when we are not in CLI mode, we could record in the config file, the current Piwik URL (fetched with Piwik_Url)
  • Piwik_Url would then use this value if it is found in the config file
  • we could deprecate [mail] defaultHostnameIfEmpty
  • new setting would be [General] piwik_hostname

Change History (2)

comment:1 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [4552]) Fixes #2318, #2325 - URL will be checked for in each piwik request to UI and API (not tracker), and will be set if not already set.
then, we use this URL for the HTML email images & link to the piwik reports

comment:2 Changed 3 years ago by matt (mattab)

  • Summary changed from Piwik URL should be set in the config file to Piwik URL should be auto-detected and cached in DB
Note: See TracTickets for help on using tickets.