Skip to content

Commit f38a095

Browse files
authored
docs(fern): fix redirects for /latest/index.html (#793)
Google and external links target .../openshell/latest/index.html. Wildcard rules .../latest/:path*/index.html can mis-resolve when the path segment is empty, producing a literal :path* in the destination URL. Add explicit redirects for /openshell/latest/index.html and /openshell/latest/index (aligned with NeMo-Curator fern/docs.yml) and document ordering versus Sphinx-style URLs. Made-with: Cursor Signed-off-by: Lawrence Lane <llane@nvidia.com>
1 parent 57b4dff commit f38a095

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

fern/docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,18 @@ versions:
6666

6767
redirects:
6868
# Paths are relative to the site root; subpath prefix matches instances + custom-domain.
69+
# Sphinx-style URLs used .../path/to/page/index.html; Fern canonical URLs omit index.html.
70+
# List explicit /index.html routes before :path*/index.html so empty path segments do not
71+
# mis-resolve (see NeMo-Curator fern/docs.yml). :path*.html must follow :path*/index.html rules.
6972
# https://www.buildwithfern.com/learn/docs/configuration/site-level-settings#redirects-configuration
7073
- source: "/openshell/index.html"
7174
destination: "/openshell/latest"
7275
- source: "/openshell/index"
7376
destination: "/openshell/latest"
77+
- source: "/openshell/latest/index.html"
78+
destination: "/openshell/latest"
79+
- source: "/openshell/latest/index"
80+
destination: "/openshell/latest"
7481
- source: "/openshell/latest/:path*/index.html"
7582
destination: "/openshell/latest/:path*"
7683
- source: "/openshell/:path*/index.html"

0 commit comments

Comments
 (0)