From 79e3e08b97fc616e14cfa74334c5754c473bb60f Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Sat, 11 Oct 2025 16:06:58 -0400 Subject: [PATCH 1/2] update redirects page --- .../docs/pages/customization/what-is-docs-yml.mdx | 14 +++++++------- fern/snippets/redirects.mdx | 7 ++++++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/fern/products/docs/pages/customization/what-is-docs-yml.mdx b/fern/products/docs/pages/customization/what-is-docs-yml.mdx index f569be63a..a6e029ddf 100644 --- a/fern/products/docs/pages/customization/what-is-docs-yml.mdx +++ b/fern/products/docs/pages/customization/what-is-docs-yml.mdx @@ -468,31 +468,31 @@ settings: The text to display in the searchbar. - + If set to true, the searchbar will be disabled. Use this if you want to use a custom search solution. - + If set to true, the code blocks will be displayed in dark mode, regardless of the selected theme. - - By default, search will display results for pages across all products and versions. + + By default (`false`), search will display results for pages across all products and versions. If set to true, search will display results for pages within the current product and version. - + If set to true, the HTTP snippets will be displayed in the API Reference. - + If set to true, when a user navigates to a page that does not exist, they will be redirected to the home page. By default, a 404 page will be displayed. - + If set to true, the TypeScript snippets will be displayed as JavaScript snippets in the API Reference. diff --git a/fern/snippets/redirects.mdx b/fern/snippets/redirects.mdx index 127f123f2..ee0827db9 100644 --- a/fern/snippets/redirects.mdx +++ b/fern/snippets/redirects.mdx @@ -54,7 +54,12 @@ redirects: destination: / # Don't do this ``` -Instead, reach out to Fern to enable automatic homepage redirects, an internal setting that handles broken links without needing manual redirects. +Instead, [enable automatic homepage redirects in your `docs.yml`](/docs/configuration/what-is-docs-yml#settings-configuration) to send broken links to your homepage rather than showing a 404 page: + +```yaml +settings: + hide-404-page: true +``` From 872e80cc32fdcf1ccf07b0b4215327d4cfa7bd1a Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Sat, 11 Oct 2025 16:09:47 -0400 Subject: [PATCH 2/2] small fix --- fern/snippets/redirects.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fern/snippets/redirects.mdx b/fern/snippets/redirects.mdx index ee0827db9..2915e099e 100644 --- a/fern/snippets/redirects.mdx +++ b/fern/snippets/redirects.mdx @@ -56,7 +56,7 @@ redirects: Instead, [enable automatic homepage redirects in your `docs.yml`](/docs/configuration/what-is-docs-yml#settings-configuration) to send broken links to your homepage rather than showing a 404 page: -```yaml +```yaml title="docs.yml" settings: hide-404-page: true ```