Skip to content

Commit d662075

Browse files
kimsauceStacy Kornluebke
and
Stacy Kornluebke
authored
Route 404 to homepage (#397)
* AWS Cost explorer * Word list, glossary, URL fixes, missing descriptions * dashboards metadata * Broken links from initial migration * fix broken links * Moved Sensu + various migration edits * Beta docs guidance and link fixes * Beta badge on homepage * links, Search docs consolidation * links * links * Contributor guidelines, IA consolidation, missing metadata * Update .clabot * fixes * links * links * Added all Release Notes RSS files for storage * tagline edit per Christian B. * Formatting, Manage section metadata * Formatting, Manage section metadata * Manage Data metadata and IA streamlining * Update manage.md * more content * content, homepage * clabot - new contributor * .clabot contributors * .clabot contributors * merge w main * Consolidation * 404 -> Home redirect * Route 404 to homepage (temporarily) * rm 404 redirect from cid-redirects.json Co-authored-by: Stacy Kornluebke <stacy@sumologic.com>
1 parent 19c2186 commit d662075

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

cid-redirects.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,5 @@
7878
"/cid/6966": "/docs/integrations/databases/redis",
7979
"/cid/6690": "/docs/manage/security/access-keys",
8080
"/cid/6115": "/docs/integrations/security-threat-detection/duo-security",
81-
"/cid/6114": "/docs/integrations/amazon-aws/dynamodb",
82-
"/src/theme/NotFound.js": "/"
81+
"/cid/6114": "/docs/integrations/amazon-aws/dynamodb"
8382
}

docusaurus.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,19 @@ module.exports = {
120120
'react-iframe',
121121
['@docusaurus/plugin-client-redirects',
122122
{
123+
fromExtensions: ['js'], // /myPage.html -> /myPage
124+
redirects: [
125+
{
126+
from: '/src/theme/NotFound.js',
127+
to: '/',
128+
},
129+
],
123130
redirects: Object.entries(cidRedirects).map(
124131
([key, value]) => ({ from: key, to: value })
125132
)
126133
},
127134
],
128135
],
129-
130136
/* // Optional: See this site to configure - live editor https://github.com/jlvandenhout/docusaurus-plugin-docs-editor
131137
// Requires adding OAUTH app https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app
132138
[

0 commit comments

Comments
 (0)