You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Index page generated with the default theme does not have it.
Explanation
A rel canonical link informs a search engines that which page is the canonical page, i.e., the page that users should use. For example, the following two URLs have the exactly the same content:
A user can read the content by visiting either the of the URLs above. However, it is better for search engine to only index one of them so that the search results would be consistent and avoids content duplication in search results (while Search Engines also do some guesswork, they are not reliable and would punish the websites that do not mark canonical pages properly). By including a rel canonical link in the index page, search engines would understand the relationship between the two pages:
<link rel=canonical href=${sitemapBaseUrl}/>
The link does not have any effects to human visitors; they are only there for search engines.
(I'm getting a ton of warnings from Google Search Console)
The text was updated successfully, but these errors were encountered:
This should probably only be emitted if sitemapBaseUrl is set, since otherwise it'd result in a lie... it feels off to me to use this option for emitting that, but it's not necessarily wrong... just weird...
According to that Google page, it sounds like the sitemap should also include base/ rather than base/index.html as it currently does for the page index.
If doing this... we probably ought to also add a check to handle pages which render as index.html in the modules/functions/classes directories. In their case, the / really ought not be the canonical URL, as they aren't a landing page for the directory, but caused by an exported thing named index... maybe that should actually be a special case where it's renamed to index.namespace.html or something...
Search terms
default theme, canonical link
Expected Behavior
Index page generated by typedoc should include a rel canonical link.
Actual Behavior
Index page generated with the default theme does not have it.
Explanation
A rel canonical link informs a search engines that which page is the canonical page, i.e., the page that users should use. For example, the following two URLs have the exactly the same content:
A user can read the content by visiting either the of the URLs above. However, it is better for search engine to only index one of them so that the search results would be consistent and avoids content duplication in search results (while Search Engines also do some guesswork, they are not reliable and would punish the websites that do not mark canonical pages properly). By including a rel canonical link in the index page, search engines would understand the relationship between the two pages:
The link does not have any effects to human visitors; they are only there for search engines.
(I'm getting a ton of warnings from Google Search Console)
The text was updated successfully, but these errors were encountered: