...
 
Commits (3)
......@@ -114,7 +114,7 @@ class SEO
$body = substr($body, 0, 139) . '…';
}
$url = $blog->getPermaURL();
$url = $blog->getPermaURL() ?: $blog->getUrl();
$ssl = (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) ||
(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https');
......@@ -129,7 +129,7 @@ class SEO
$allowIndexing = Counters::get($blog->getGuid(), 'thumbs:up') >= 2;
return $meta = array(
'title' => $custom_meta['title'] ?: $blog->getTitle(),
'title' => ($custom_meta['title'] ?: $blog->getTitle()) . ' | ' . Core\Di\Di::_()->get('Config')->site_name,
'description' => $custom_meta['description'] ?: $body,
'author' => $custom_meta['author'] ?: '@' . $blog->getOwnerObj()['username'],
'og:title' => $custom_meta['title'] ?: $blog->getTitle(),
......
......@@ -63,7 +63,7 @@ class SitemapTrending extends SitemapModule
$route = $entity->username;
break;
case 'blogs':
$route = 'blog/view/' . $entity->guid;
$route = $entity->getUrl(true);
break;
case 'groups':
$route = 'groups/profile' . $entity->guid;
......