Keep slashless redirects on HTTPS
- Langage dominant
- TypeScript
- Étoiles
- 10
- Forks
- 50
- Merge moyen
- 22 j 23 h
- PR mergées (30 j)
- 1
Description
## Problem
Production requests for canonical docs routes without a trailing slash return an absolute `http://` redirect even when the original request uses HTTPS.
Examples:
```console
$ curl -I https://docs.miden.xyz/next/builder/migration/asset-vault-faucet
HTTP/2 301
location: http://docs.miden.xyz/next/builder/migration/asset-vault-faucet/
$ curl -I https://docs.miden.xyz/0.15/reference/protocol/asset
HTTP/2 301
location: http://docs.miden.xyz/0.15/reference/protocol/asset/
```
The trailing-slash URLs themselves return HTTPS 200, and generated site links now use trailing slashes, so normal navigation works. Directly entered or externally linked slashless URLs still take an unnecessary insecure intermediate hop.
## Expected behavior
Slashless HTTPS requests should either:
- redirect directly to the trailing-slash HTTPS URL, or
- serve the canonical route without an HTTP downgrade.
## Scope
This appears to be a hosting/proxy canonicalization issue rather than a Docusaurus content redirect. Check the GitHub Pages and Cloudflare redirect/proxy configuration.
## Acceptance criteria
- `Location` remains `https://docs.miden.xyz/.../` for slashless HTTPS requests.
- Current, next, and versioned routes behave consistently.
- Existing trailing-slash routes and Docusaurus client redirects continue to work.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Check the GitHub Pages and Cloudflare configuration for the docs site. Look for redirect rules or proxy settings that handle trailing slashes. Test HTTPS requests to slashless URLs and verify the Location header. Ensure changes preserve existing trailing-slash routes and Docusaurus client-side redirects.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Domaine
- devops, documentation, infrastructure
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100