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

Piwik URL should be auto-detected and cached in DB #2325

Closed
mattab opened this issue Apr 17, 2011 · 1 comment
Closed

Piwik URL should be auto-detected and cached in DB #2325

mattab opened this issue Apr 17, 2011 · 1 comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Apr 17, 2011

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: http://piwik.org/faq/troubleshooting/#faq_110

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.

Proposal:

  • 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
@mattab
Copy link
Member Author

mattab commented Apr 26, 2011

(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

@mattab mattab added this to the 1.4 - Piwik 1.4 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

1 participant