@tsteur opened this Issue on November 24th 2022 Member

The feature https://github.com/matomo-org/matomo/issues/17017 was added in https://github.com/matomo-org/matomo/pull/19835/files

In this change we're using location.protocol. However, we would need to use the tracker method getCurrentUrl() and check whether the protocol is file for configCustomUrl || locationHrefAlias. That's because a user can overwrite the URL via setCustomUrl(). If the set custom URL isn't of protocol file, then we could still track it. Not sure if there would be any other side effects otherwise like the referrer may be still file://.

@justinvelluppillai commented on November 27th 2022 Member

Small point but we also have function getProtocolScheme(url) that would be useful to use

Powered by GitHub Issue Mirror