mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-22 19:17:46 +02:00
document @docusaurus/plugin-client-redirects in migration guide + fix doc typo
This commit is contained in:
parent
6c4c6c5750
commit
b8168e2287
2 changed files with 40 additions and 3 deletions
|
@ -489,7 +489,7 @@ Main usecase: you have `/myDocusaurusPage`, and you want to redirect to this pag
|
|||
module.exports = {
|
||||
plugins: [
|
||||
[
|
||||
'@docusaurus/plugin-sitemap',
|
||||
'@docusaurus/plugin-client-redirects',
|
||||
{
|
||||
fromExtension: ['html'],
|
||||
},
|
||||
|
@ -504,7 +504,7 @@ Second usecase: you have `/myDocusaurusPage.html`, and you want to redirect to t
|
|||
module.exports = {
|
||||
plugins: [
|
||||
[
|
||||
'@docusaurus/plugin-sitemap',
|
||||
'@docusaurus/plugin-client-redirects',
|
||||
{
|
||||
toExtension: ['html'],
|
||||
},
|
||||
|
@ -521,7 +521,7 @@ Let's imagine you change the url of an pexisting age, you might want to make sur
|
|||
module.exports = {
|
||||
plugins: [
|
||||
[
|
||||
'@docusaurus/plugin-sitemap',
|
||||
'@docusaurus/plugin-client-redirects',
|
||||
{
|
||||
createRedirects: function (existingPath) {
|
||||
if (existingPath === '/docs/newDocPath') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue