mirror of
https://github.com/e107inc/e107.git
synced 2025-07-27 01:40:22 +02:00
Merge pull request #4425 from Jimmi08/patch-23
Issue #3912 e_ROUTE for legacy news urls
This commit is contained in:
@@ -553,16 +553,21 @@ class news_front
|
|||||||
|
|
||||||
case "all":
|
case "all":
|
||||||
e107::meta('robots', 'noindex');
|
e107::meta('robots', 'noindex');
|
||||||
|
e107::route('news/list/items');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "tag":
|
case "tag":
|
||||||
|
e107::title($this->subAction);
|
||||||
|
e107::meta('og:title', $this->subAction);
|
||||||
|
e107::meta('robots', 'noindex');
|
||||||
|
e107::route('news/list/tag');
|
||||||
|
break;
|
||||||
case "author":
|
case "author":
|
||||||
|
|
||||||
e107::title($this->subAction);
|
e107::title($this->subAction);
|
||||||
e107::meta('og:title', $this->subAction);
|
e107::meta('og:title', $this->subAction);
|
||||||
e107::meta('robots', 'noindex');
|
e107::meta('robots', 'noindex');
|
||||||
|
e107::route('news/list/author');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "list":
|
case "list":
|
||||||
@@ -571,7 +576,7 @@ class news_front
|
|||||||
e107::title($title);
|
e107::title($title);
|
||||||
e107::meta('og:title', $title);
|
e107::meta('og:title', $title);
|
||||||
e107::meta('robots', 'noindex');
|
e107::meta('robots', 'noindex');
|
||||||
|
e107::route('news/list/category');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "day":
|
case "day":
|
||||||
@@ -596,15 +601,25 @@ class news_front
|
|||||||
e107::title($title);
|
e107::title($title);
|
||||||
e107::meta('og:title', $title);
|
e107::meta('og:title', $title);
|
||||||
e107::meta('robots', 'noindex');
|
e107::meta('robots', 'noindex');
|
||||||
|
|
||||||
|
if($type == 'day') {
|
||||||
|
e107::route('news/list/day');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
e107::route('news/list/month');
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "news":
|
case "news":
|
||||||
e107::canonical($this->route, $news);
|
e107::canonical($this->route, $news);
|
||||||
|
e107::route('news/view/item');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
e107::meta('robots', 'noindex');
|
e107::meta('robots', 'noindex');
|
||||||
|
e107::route('news/list/items');
|
||||||
// e107::canonical('news');
|
// e107::canonical('news');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user