Skip to content

Commit

Permalink
Added Canonical URLs to article display
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHammond committed Mar 29, 2024
1 parent 1f9bf51 commit 221fae3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Controls/ArticleView.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ protected void Page_Load(object sender, EventArgs e)
var listOfTerms = curArticle.Terms.ToDelimittedString(",");
tp.KeyWords += "," + listOfTerms;


var mi2 = mc.GetModule(ModuleId);

tp.CanonicalLinkUrl = ArticleController.GetArticleLink(mi2.TabID, Convert.ToInt32(curArticle.ArticleId));

var OpenGraphUrl = new HtmlMeta();
OpenGraphUrl.Attributes.Add("property", "og:url");
OpenGraphUrl.Content = ArticleController.GetArticleLink(mi2.TabID, Convert.ToInt32(curArticle.ArticleId));
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Added btn btn-primary/secondary to the article list previous and next links (boo
Add ModuleSearchBase for DNN Search integration for Articles.
Fixed permalink urls for articles that don't have a permalink yet.
Removed unneccessary DNN.web.deprecated references.
Added CanonicalURL to article display.


<h3>v00.02.07</h3>
Expand Down
Binary file modified install/DNNSimpleArticle_00.02.08_Install.zip
Binary file not shown.
Binary file modified install/DNNSimpleArticle_00.02.08_Source.zip
Binary file not shown.

0 comments on commit 221fae3

Please sign in to comment.