Skip to content

Use canonical URLs

Achilleas Pipinellis requested to merge canonical-urls into master

Description

We need a canonical link added dynamically to the <head> (in layouts/head.html)

  • */index.html and */README.html => canonical: */. E.g.: docs.gitlab.com/index.html => canonical : docs.gitlab.com/
  • docs.gitlab.com/ce/.../some_file.html => canonical: docs.gitlab.com/ee/.../some_file.html
<link rel="canonical" href="http://www.yourdomain.com/your-preferred-url/" />

Todos:

  • All index.html and README.html files stripped
  • Replace ce/ with ee/

Fixes https://gitlab.com/gitlab-com/gitlab-docs/issues/171

Edited by Achilleas Pipinellis

Merge request reports