diff options
author | sgiehl <stefan@piwik.org> | 2019-01-06 20:17:13 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2019-01-06 20:17:13 +0300 |
commit | d1850e04081c9a7b0be584e4957414e50ac8cd22 (patch) | |
tree | 4307088b431ac25aa7cdf8cf61e7a9ba3607a9b3 | |
parent | e92247972a99092eb300bcbc163492542017d1b5 (diff) |
Hide mainurl visitor log action list
-rw-r--r-- | plugins/Live/VisitorDetails.php | 1 | ||||
-rw-r--r-- | plugins/Live/templates/_actionCommon.twig | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Live/VisitorDetails.php b/plugins/Live/VisitorDetails.php index 376186ac08..6373d933be 100644 --- a/plugins/Live/VisitorDetails.php +++ b/plugins/Live/VisitorDetails.php @@ -89,6 +89,7 @@ class VisitorDetails extends VisitorDetailsAbstract } $view = new View($template); + $view->mainUrl = trim(Site::getMainUrlFor($this->getIdSite())); $view->action = $action; $view->previousAction = $previousAction; $view->visitInfo = $visitorDetails; diff --git a/plugins/Live/templates/_actionCommon.twig b/plugins/Live/templates/_actionCommon.twig index 50144fecc7..84613a4141 100644 --- a/plugins/Live/templates/_actionCommon.twig +++ b/plugins/Live/templates/_actionCommon.twig @@ -24,7 +24,7 @@ {% else %} <a href="{{ action.url|safelink|e('html_attr') }}" rel="noreferrer noopener" target="_blank" class="action-list-url truncated-text-line"> - {{ action.url|replace({'http://': '', 'https://': ''}) }} + {{ action.url|replace({(mainUrl): '', 'http://': '', 'https://': ''}) }} </a> {% endif %} {% if action.type == 'action' and action.pageTitle|default(false) is not empty %}</p>{% endif %} |