-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added redirects from /pro-and-enterprise/modules to /add-on-modules/m…
…odules
- Loading branch information
1 parent
5cb2d86
commit 9e8f515
Showing
16 changed files
with
264 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// plugins/redirect-plugin.js | ||
module.exports = function redirectPlugin(context, options) { | ||
return { | ||
name: 'redirect-plugin', | ||
async contentLoaded({content, actions}) { | ||
const {addRoute} = actions; | ||
|
||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/custom-domains', | ||
component: '@site/src/components/redirects/custom-domains', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/anti-malware-antivirus', | ||
component: '@site/src/components/redirects/anti-malware-antivirus', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/document-generation', | ||
component: '@site/src/components/redirects/document-generation', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/document-versioning', | ||
component: '@site/src/components/redirects/document-versioning', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/e-signature', | ||
component: '@site/src/components/redirects/e-signature', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/enhanced-document-ocr', | ||
component: '@site/src/components/redirects/enhanced-document-ocr', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/enhanced-fulltext-document-search', | ||
component: '@site/src/components/redirects/enhanced-fulltext-document-search', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/filesync-cli', | ||
component: '@site/src/components/redirects/filesync-cli', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/full-encryption', | ||
component: '@site/src/components/redirects/full-encryption', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/onlyoffice-document-collaboration', | ||
component: '@site/src/components/redirects/onlyoffice-document-collaboration', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/open_policy_agent', | ||
component: '@site/src/components/redirects/open-policy-agent', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/rulesets', | ||
component: '@site/src/components/redirects/rulesets', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/single-sign-on-and-custom-jwt-authorizer', | ||
component: '@site/src/components/redirects/single-sign-on-and-custom-jwt-authorizer', | ||
exact: true | ||
}); | ||
addRoute({ | ||
path: '/docs/pro-and-enterprise/modules/tag-schema', | ||
component: '@site/src/components/redirects/tag-schema', | ||
exact: true | ||
}); | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/anti-malware-antivirus'); | ||
}, []); | ||
|
||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/custom-domains'); | ||
}, []); | ||
|
||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/document-generation'); | ||
}, []); | ||
|
||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/document-versioning'); | ||
}, []); | ||
|
||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/e-signature'); | ||
}, []); | ||
|
||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/enhanced-document-ocr'); | ||
}, []); | ||
|
||
return null; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/components/redirects/enhanced-fulltext-document-search.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/enhanced-fulltext-document-search'); | ||
}, []); | ||
|
||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/filesync-cli'); | ||
}, []); | ||
|
||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
|
||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/full-encryption'); | ||
}, []); | ||
|
||
return null; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/components/redirects/onlyoffice-document-collaboration.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/onlyoffice-document-collaboration'); | ||
}, []); | ||
|
||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/open-policy-agent'); | ||
}, []); | ||
|
||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useHistory } from '@docusaurus/router'; | ||
|
||
export default function Redirect() { | ||
const history = useHistory(); | ||
|
||
useEffect(() => { | ||
history.replace('/docs/add-on-modules/modules/rulesets'); | ||
}, []); | ||
|
||
return null; | ||
} |
Oops, something went wrong.