Discover how to add canonical URL links to pages in your HTML5 outputs in Paligo.
The pages in your HTML5 help center may be seen as duplicate content by some search engines. This can have a negative effect on the ranking for those pages in search results. To help prevent this, you can set Paligo to generate "canonical URL links". Canonical URL links tell the search engines which instance of a page is the original version.
Note
Search engines may identify some pages as duplicates because there are different URLs for the same page. For example, there can be different URLs due to tracking, analytics tokens, or language versions. They all access the same content but use a different URL.
Important
If you enable Ajax loading in the layout, the canonical URL link feature may not work.
This is because Ajax loading removes the <head>
element from the HTML. The canonical URL link is added to the <head>
section.
To set Paligo to add canonical URL links:
-
Select Layout in the top menu.
-
Select the Layout you want to update or Create a Layout.
Tip
You can copy the URL of the Layout Editor and paste it into a new tab in your browser. This can be useful if you frequently switch between your Paligo content and the Layout settings.
-
Select CSS, JS, logos and other assets in the sidebar.
-
In the Publishing destination path field, enter the URL of your help center.
If you have not published your help center yet, this is the address where you intend to host your help center, for example:
href="www.acme.com/customersupport/
-
Set Add canonical URL link to:
-
Enable to add a canonical URL to every page in your help center output.
The canonical URL uses this format:
destination.domain + lang + '/' + relative-page url
Where destination.domain is the domain set in the Publishing destination path, lang is the language code, and relative-page url is the address of the individual page, for example:
<link rel="canonical" href="www.acme.com/customersupport/en/replace-the-battery.html"></link>
Note that with Enable, Paligo includes "index.html" in the canonical URL for the help center's home page.
-
Enable (Promote destination path as canonical) - This works in the same way as Enable except that Paligo will not include the
index.html
part of the URL for the help center's home page. -
Disable - Paligo will not add a canonical URL link to any page.
-
Default to inherit the value for this setting from the base Layout. The base Layout is either a built-in Layout provided by Paligo or another custom Layout, see Layout Relationships - Base, New, Duplicate.
-
-
Select Save.
When you publish with this layout, Paligo applies the canonical URL setting to your output.
If you enabled canonical URLs, the canonical link will appear in the <head>
section of the HTML.
Comments
0 comments
Article is closed for comments.