@shenzhuxi opened this Issue on November 19th 2015

In Page Overlay view, url with port will not be displayed.

I fixed it in piwik/plugins/Overlay/client/urlnormalizer.js with

        initialize: function () {
-            this.setCurrentDomain(document.location.hostname);
+           this.setCurrentDomain(document.location.hostname + ':' + document.location.port);
            this.setCurrentUrl(window.location.href);

            var head = document.getElementsByTagName('head');
            if (head.length) {
                var base = head[0].getElementsByTagName('base');
                if (base.length && base[0].href) {
                    this.setBaseHref(base[0].href);
                }
            }
        },
@tsteur commented on November 22nd 2015 Member

Hi @shenzhuxi are you maybe familiar with pull requests and want to issue one?

If so, it should append the port only if there is a port actually set

Powered by GitHub Issue Mirror