Skip to content

canonicalURI

Sid Vishnoi edited this page Nov 17, 2020 · 17 revisions

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally

canonicalURI

The canonicalURI lets you indicate either a URL or a keyword to use as the canonical link of the document. Search engines, like Google, can make use of this information to help determine which version of document is authoritative.

Following keywords automatically generate a corresponding URL. However, you are free to include your own URL.

Keyword Generated URL
"edDraft" Use the edDraftURI as the canonical URL.
"TR" Use the "TR" location for this document, using the shortName.
var respecConfig = {
  shortName: "fooAPI",
  canonicalURI: "TR",
};