|  | 
| 11 | 11 | 
 | 
| 12 | 12 | # Shortcut to discord server invite | 
| 13 | 13 | [[redirects]] | 
| 14 |  | - from = "https://testing-library.com/discord" | 
|  | 14 | + from = "/discord" | 
| 15 | 15 |  to = "https://discord.gg/c6JN9fM" | 
| 16 | 16 |  force = true | 
| 17 | 17 | 
 | 
| 18 | 18 | # React root to React landing page | 
| 19 | 19 | [[redirects]] | 
| 20 | 20 |  from = "https://react-testing-library.com/" | 
| 21 |  | - to = "https://testing-library.com/react/" | 
|  | 21 | + to = "/react/" | 
| 22 | 22 |  force = true | 
| 23 | 23 | 
 | 
| 24 | 24 | # React to main domain | 
| 25 | 25 | [[redirects]] | 
| 26 | 26 |  from = "https://react-testing-library.com/*" | 
| 27 |  | - to = "https://testing-library.com/:splat" | 
|  | 27 | + to = "/:splat" | 
| 28 | 28 |  force = true | 
| 29 | 29 | 
 | 
| 30 | 30 | # Netlify subdomain to main domain | 
| 31 | 31 | [[redirects]] | 
| 32 | 32 |  from = "https://testing-library.netlify.com/*" | 
| 33 |  | - to = "https://testing-library.com/:splat" | 
|  | 33 | + to = "/:splat" | 
| 34 | 34 |  force = true | 
| 35 | 35 | 
 | 
| 36 | 36 | # Redirects due to reorganization (do not redirect if route is not 404) | 
|  | 
| 46 | 46 | 
 | 
| 47 | 47 | # DOM landing page to home page | 
| 48 | 48 | [[redirects]] | 
| 49 |  | - from = "https://testing-library.com/dom/" | 
| 50 |  | - to = "https://testing-library.com/docs/dom-testing-library/intro" | 
|  | 49 | + from = "/dom/" | 
|  | 50 | + to = "/docs/dom-testing-library/intro" | 
| 51 | 51 |  force = true | 
| 52 | 52 | 
 | 
| 53 | 53 | # React landing page to home page | 
| 54 | 54 | [[redirects]] | 
| 55 |  | - from = "https://testing-library.com/react/" | 
| 56 |  | - to = "https://testing-library.com/docs/react-testing-library/intro" | 
|  | 55 | + from = "/react/" | 
|  | 56 | + to = "/docs/react-testing-library/intro" | 
| 57 | 57 |  force = true | 
| 58 | 58 | 
 | 
| 59 | 59 | # React Native landing page to home page | 
| 60 | 60 | [[redirects]] | 
| 61 |  | - from = "https://testing-library.com/react-native/" | 
| 62 |  | - to = "https://testing-library.com/docs/react-native-testing-library/intro" | 
|  | 61 | + from = "/react-native/" | 
|  | 62 | + to = "/docs/react-native-testing-library/intro" | 
| 63 | 63 |  force = true | 
| 64 | 64 | 
 | 
| 65 | 65 | # Cypress landing page to home page | 
| 66 | 66 | [[redirects]] | 
| 67 |  | - from = "https://testing-library.com/cypress/" | 
| 68 |  | - to = "https://testing-library.com/docs/cypress-testing-library/intro" | 
|  | 67 | + from = "/cypress/" | 
|  | 68 | + to = "/docs/cypress-testing-library/intro" | 
| 69 | 69 |  force = true | 
| 70 | 70 | 
 | 
| 71 | 71 | # Vue landing page to home page | 
| 72 | 72 | [[redirects]] | 
| 73 |  | - from = "https://testing-library.com/vue/" | 
| 74 |  | - to = "https://testing-library.com/docs/vue-testing-library/intro" | 
|  | 73 | + from = "/vue/" | 
|  | 74 | + to = "/docs/vue-testing-library/intro" | 
| 75 | 75 |  force = true | 
| 76 | 76 | 
 | 
| 77 | 77 | # Angular landing page to home page | 
| 78 | 78 | [[redirects]] | 
| 79 |  | - from = "https://testing-library.com/angular/" | 
| 80 |  | - to = "https://testing-library.com/docs/angular-testing-library/intro" | 
|  | 79 | + from = "/angular/" | 
|  | 80 | + to = "/docs/angular-testing-library/intro" | 
| 81 | 81 |  force = true | 
| 82 | 82 | 
 | 
| 83 | 83 | # Puppeteer landing page to home page | 
| 84 | 84 | [[redirects]] | 
| 85 |  | - from = "https://testing-library.com/pptr/" | 
| 86 |  | - to = "https://testing-library.com/docs/pptr-testing-library/intro" | 
|  | 85 | + from = "/pptr/" | 
|  | 86 | + to = "/docs/pptr-testing-library/intro" | 
| 87 | 87 |  force = true | 
| 88 | 88 | 
 | 
| 89 | 89 | # Svelte landing page to home page | 
| 90 | 90 | [[redirects]] | 
| 91 |  | - from = "https://testing-library.com/svelte/" | 
| 92 |  | - to = "https://testing-library.com/docs/svelte-testing-library/intro" | 
|  | 91 | + from = "/svelte/" | 
|  | 92 | + to = "/docs/svelte-testing-library/intro" | 
| 93 | 93 |  force = true | 
| 94 | 94 | 
 | 
| 95 | 95 | # Preact landing page to home page | 
| 96 | 96 | [[redirects]] | 
| 97 |  | - from = "https://testing-library.com/preact/" | 
| 98 |  | - to = "https://testing-library.com/docs/preact-testing-library/intro" | 
|  | 97 | + from = "/preact/" | 
|  | 98 | + to = "/docs/preact-testing-library/intro" | 
| 99 | 99 |  force = true | 
| 100 | 100 | 
 | 
| 101 | 101 | # jest-dom landing page to home page | 
| 102 | 102 | [[redirects]] | 
| 103 |  | - from = "https://testing-library.com/jest-dom/" | 
| 104 |  | - to = "https://testing-library.com/docs/ecosystem-jest-dom" | 
|  | 103 | + from = "/jest-dom/" | 
|  | 104 | + to = "/docs/ecosystem-jest-dom" | 
| 105 | 105 |  force = true | 
| 106 | 106 | 
 | 
| 107 | 107 | # Testcafe landing page to home page | 
| 108 | 108 | [[redirects]] | 
| 109 |  | - from = "https://testing-library.com/testcafe/" | 
| 110 |  | - to = "https://testing-library.com/docs/testcafe-testing-library/intro" | 
|  | 109 | + from = "/testcafe/" | 
|  | 110 | + to = "/docs/testcafe-testing-library/intro" | 
| 111 | 111 |  force = true | 
| 112 | 112 | 
 | 
| 113 | 113 | # Nightwatch landing page to home page | 
| 114 | 114 | [[redirects]] | 
| 115 |  | - from = "https://testing-library.com/nightwatch/" | 
| 116 |  | - to = "https://testing-library.com/docs/nightwatch-testing-library/intro" | 
|  | 115 | + from = "/nightwatch/" | 
|  | 116 | + to = "/docs/nightwatch-testing-library/intro" | 
| 117 | 117 |  force = true | 
| 118 | 118 | 
 | 
| 119 | 119 | # React Redux recipe to Redux's recipe | 
| 120 | 120 | [[redirects]] | 
| 121 |  | - from = "https://testing-library.com/docs/example-react-redux" | 
|  | 121 | + from = "/docs/example-react-redux" | 
| 122 | 122 |  to = "https://redux.js.org/recipes/writing-tests#connected-components" | 
| 123 | 123 |  force = true | 
0 commit comments