Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

assume_secure_protocol is not checked in View #2594

Closed
anonymous-piwik-user opened this Issue · 2 comments

2 participants

@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):

if(Piwik::isHttps()

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

@robocoder

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

  • currentUrlWithoutFilename is redundant; consolidate with piwikUrl
@robocoder

(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.