Ensure single canonical URLs are used
Problem
Currently, most of the GitLab.com URLs return the same page whether the URL ends in a slash '/' or not.
This will result in two different URLs in a search engine index which could lead to duplicate content issues.
Examples
- https://gitlab.com and https://gitlab.com/ point to the same page
- https://gitlab.com/gitlab-org/gitlab and https://gitlab.com/gitlab-org/gitlab/ point to the same page
Job to be done
- Ensure all URLs redirect (permanent 301) to the form of the URL without the trailing slash.
- Add a canonical meta tag for the pages. For example:
<link href="https://gitlab.com/gitlab-org/gitlab" rel="canonical">