diff --git a/e107_plugins/faqs/faqs.php b/e107_plugins/faqs/faqs.php index 35c0b399b..6f85b42a0 100644 --- a/e107_plugins/faqs/faqs.php +++ b/e107_plugins/faqs/faqs.php @@ -264,6 +264,7 @@ class faq function view_all($srch) // new funtion to render all FAQs { + e107::canonical('faqs', 'index'); $tp = e107::getParser(); $ret = array(); diff --git a/e107_plugins/news/news.php b/e107_plugins/news/news.php index c5f49307f..e3608aad1 100644 --- a/e107_plugins/news/news.php +++ b/e107_plugins/news/news.php @@ -562,26 +562,32 @@ class news_front case "all": e107::meta('robots', 'noindex'); - e107::route('news/list/items'); + e107::route('news/list/items'); + e107::canonical($this->route, $news); break; case "tag": e107::title($this->subAction); e107::meta('robots', 'noindex'); e107::route('news/list/tag'); + e107::canonical('news/list/tag', array('tag'=> str_replace(' ','-',$this->subAction))); break; case "author": e107::title($this->subAction); e107::meta('robots', 'noindex'); - e107::route('news/list/author'); + e107::route('news/list/author'); + e107::canonical('news/list/author', $news); break; case "list": $title = $tp->toHTML($news['category_name'],false,'TITLE_PLAIN'); e107::title($title); 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; case "day": @@ -608,11 +614,13 @@ class news_front if($type == 'day') { - e107::route('news/list/day'); + e107::route('news/list/day'); + e107::canonical('news/list/day', $news); } else { - e107::route('news/list/month'); + e107::route('news/list/month'); + e107::canonical('news/list/month', $news); } break; @@ -625,7 +633,10 @@ class news_front default: // e107::meta('robots', 'noindex'); - e107::route('news/list/items'); + e107::route('news/list/items'); + e107::canonical($this->route, $news); + + // e107::canonical('news'); }