Files
mattermost/docs/site/sidebars
Eva Sarafianou 597d9c4296 docs/site: add legacy Sphinx URL redirects for 281 URLs, fix 3 broken targets (#38387)
* docs/site: add legacy Sphinx URL redirects for 281 URLs, fix 3 broken targets

Adds 281 new entries to active-redirects.json for legacy Sphinx URLs that
currently return 404 on docs.mattermost.com, and corrects 3 existing entries
whose 'to' pointed at pages that were moved after the initial migration.

Sources verified from:
- source .rst/.md files in mattermost/docs Sphinx repo
- redirects_map in source/redirects.py (sphinx_reredirects extension)
- old-Sphinx CDN at d3r1ild9aa68qq.cloudfront.net (still serving legacy URLs)

Every target was live-probed against docs.mattermost.com (200, no soft-404).

Release Note:
```release-note
NONE
```

* docs/site: fix two malformed redirect targets

- /guides/install-deploy-upgrade-scale: strip extra leading slash
  (//deployment-guide/... -> /deployment-guide/deployment-architecture).
- /overview/index.html: strip stray space ("/ " -> "/") so the
  target is the docs root instead of a whitespace-encoded path.

Both hand-edited values in the source CSV; the initial verify pass
missed them because HTTP silently collapses '//' and encodes ' ' -> '%20'
which still lands on the root. Added a small validator that flags
non-'/'-prefixed, leading-'//', or whitespace-in-path 'to' values, plus
duplicate 'from' values.

Release Note:
```release-note
NONE
```

* docs/site: drop trailing slash on /developer/before-you-get-started target

Docusaurus is configured with trailingSlash: false; all other 'to' values
in active-redirects.json omit the trailing slash. Normalize this one entry
for consistency.

Release Note:
```release-note
NONE
```
2026-09-07 18:47:45 +03:00
..