Added support for rel="canonical" meta.
This commit is contained in:
parent
9d52f36079
commit
78d4d07a73
5 changed files with 37 additions and 9 deletions
|
@ -81,6 +81,12 @@ namespace ScrewTurn.Wiki {
|
|||
SetupEmailNotification();
|
||||
|
||||
SetupPageContent(canPostDiscussion, canManageDiscussion);
|
||||
|
||||
if(currentPage != null) {
|
||||
Literal canonical = new Literal();
|
||||
canonical.Text = Tools.GetCanonicalUrlTag(Request.Url.ToString(), currentPage, Pages.FindNamespace(NameTools.GetNamespace(currentPage.FullName)));
|
||||
Page.Header.Controls.Add(canonical);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue