mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-05 22:45:37 +02:00
Use new method of getting base URL
This commit is contained in:
@@ -50,7 +50,7 @@ class Popularity
|
||||
{
|
||||
/** @var Page $page */
|
||||
$page = self::$grav['page'];
|
||||
$relative_url = str_replace($this->config->get('system.base_url_relative'), '', $page->url());
|
||||
$relative_url = str_replace(self::$grav['base_url_relative'], '', $page->url());
|
||||
|
||||
// Don't track error pages or pages that have no route
|
||||
if ($page->template() == 'error' || !$page->route()) {
|
||||
|
||||
Reference in New Issue
Block a user