Skip to content

Commit

Permalink
Route 404 to homepage (#397)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
kimsauce and Stacy Kornluebke authored Oct 1, 2022
1 parent 19c2186 commit d662075
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cid-redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,5 @@
"/cid/6966": "/docs/integrations/databases/redis",
"/cid/6690": "/docs/manage/security/access-keys",
"/cid/6115": "/docs/integrations/security-threat-detection/duo-security",
"/cid/6114": "/docs/integrations/amazon-aws/dynamodb",
"/src/theme/NotFound.js": "/"
"/cid/6114": "/docs/integrations/amazon-aws/dynamodb"
}
8 changes: 7 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,19 @@ module.exports = {
'react-iframe',
['@docusaurus/plugin-client-redirects',
{
fromExtensions: ['js'], // /myPage.html -> /myPage
redirects: [
{
from: '/src/theme/NotFound.js',
to: '/',
},
],
redirects: Object.entries(cidRedirects).map(
([key, value]) => ({ from: key, to: value })
)
},
],
],

/* // Optional: See this site to configure - live editor https://github.com/jlvandenhout/docusaurus-plugin-docs-editor
// Requires adding OAUTH app https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app
[
Expand Down

0 comments on commit d662075

Please sign in to comment.