1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Added some missing canonical values.

This commit is contained in:
Cameron
2021-10-04 11:56:30 -07:00
parent 7171ca8e3d
commit 1351435a7c
2 changed files with 18 additions and 6 deletions

View File

@@ -264,6 +264,7 @@ class faq
function view_all($srch) // new funtion to render all FAQs function view_all($srch) // new funtion to render all FAQs
{ {
e107::canonical('faqs', 'index');
$tp = e107::getParser(); $tp = e107::getParser();
$ret = array(); $ret = array();

View File

@@ -562,26 +562,32 @@ class news_front
case "all": case "all":
e107::meta('robots', 'noindex'); e107::meta('robots', 'noindex');
e107::route('news/list/items'); e107::route('news/list/items');
e107::canonical($this->route, $news);
break; break;
case "tag": case "tag":
e107::title($this->subAction); e107::title($this->subAction);
e107::meta('robots', 'noindex'); e107::meta('robots', 'noindex');
e107::route('news/list/tag'); e107::route('news/list/tag');
e107::canonical('news/list/tag', array('tag'=> str_replace(' ','-',$this->subAction)));
break; break;
case "author": case "author":
e107::title($this->subAction); e107::title($this->subAction);
e107::meta('robots', 'noindex'); e107::meta('robots', 'noindex');
e107::route('news/list/author'); e107::route('news/list/author');
e107::canonical('news/list/author', $news);
break; break;
case "list": case "list":
$title = $tp->toHTML($news['category_name'],false,'TITLE_PLAIN'); $title = $tp->toHTML($news['category_name'],false,'TITLE_PLAIN');
e107::title($title); e107::title($title);
e107::meta('robots', 'noindex'); e107::meta('robots', 'noindex');
e107::route('news/list/category'); e107::route('news/list/category');
// $category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] );
e107::canonical('news/list/category', $news);
break; break;
case "day": case "day":
@@ -608,11 +614,13 @@ class news_front
if($type == 'day') if($type == 'day')
{ {
e107::route('news/list/day'); e107::route('news/list/day');
e107::canonical('news/list/day', $news);
} }
else else
{ {
e107::route('news/list/month'); e107::route('news/list/month');
e107::canonical('news/list/month', $news);
} }
break; break;
@@ -625,7 +633,10 @@ class news_front
default: default:
// e107::meta('robots', 'noindex'); // e107::meta('robots', 'noindex');
e107::route('news/list/items'); e107::route('news/list/items');
e107::canonical($this->route, $news);
// e107::canonical('news'); // e107::canonical('news');
} }