diff --git a/module/news/news.php b/module/news/news.php index ff083a4c..ce9786ed 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -70,11 +70,11 @@ class news extends common { $author = $this->signature($this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'userId'])); $newsArticle->addElementArray([ 'title' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'title']), - 'link' => helper::baseUrl() . $this->getUrl(0), + 'link' => helper::baseUrl() . $this->getUrl(0) . '/' . $newsId . '#' . $newsId, 'description' => $this->getData(['module', $this->getUrl(0),'posts', $newsId, 'content']) ]); $newsArticle->setAuthor($author,'no@mail.com'); - $newsArticle->setId(helper::baseUrl() .$this->getUrl(0) . '/' . $newsId); + $newsArticle->setId(helper::baseUrl() .$this->getUrl(0) . '/' . $newsId . '#' . $newsId); $newsArticle->setDate(date('r', $this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'publishedOn']))); $feeds->addItem($newsArticle); } diff --git a/module/news/view/index/index.php b/module/news/view/index/index.php index 2b2636f1..a269899e 100755 --- a/module/news/view/index/index.php +++ b/module/news/view/index/index.php @@ -2,7 +2,7 @@
$news): ?> -

+