fix views in analytics modal
replace empty path with / in analytics
This commit is contained in:
parent
d442d343ba
commit
a85aea5afb
|
@ -2,6 +2,8 @@
|
|||
|
||||
### Added
|
||||
### Fixed
|
||||
* fix views in analytics modal
|
||||
* replace empty path with "/" in analytics
|
||||
### Changed
|
||||
* update default templates
|
||||
|
||||
|
|
|
@ -105,6 +105,10 @@ class DateRangeAnalytic
|
|||
|
||||
$path = parse_url($entity->getUri(), PHP_URL_PATH);
|
||||
|
||||
if (empty($path)) {
|
||||
$path = '/';
|
||||
}
|
||||
|
||||
if (!isset($datas[$index]['uris'][$path])) {
|
||||
$datas[$index]['uris'][$path] = 0;
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
{% for path, views in info.uris %}
|
||||
<div class="pl-3">
|
||||
<div class="float-right">
|
||||
{{ info.views }}
|
||||
{{ views }}
|
||||
</div>
|
||||
|
||||
{{ path }}
|
||||
|
|
Loading…
Reference in a new issue