Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


assume_secure_protocol is not checked in View #2594

anonymous-piwik-user opened this Issue · 2 comments

2 participants

Anonymous Piwik user Anthon Pang
Anonymous Piwik user

When running behind a reverse proxy with ssl, the config variable assume_secure_protocol is set to 1. This seems to set the url protocol (https) correctly everyplace except in the dashboard javascript. The piwik.piwik_url variable in the global js still has "http" for the protocol. To fix this I added the Piwik::isHttps check to core/View.php after $this->piwikUrl is set (line 45):


&& strpos($this->piwikUrl, 'http://') === 0)
$this->piwikUrl = str_replace('http://', 'https://', $this->piwikUrl);

Anthon Pang

(In [5068]) * fixes #2594 - apply gator's patch

  • currentUrlWithoutFilename is redundant; consolidate with piwikUrl
Anthon Pang

(In [5070]) fixes #2606, refs #2594

Anonymous Piwik user anonymous-piwik-user added this to the 1.6 Piwik 1.6 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.