Skip to content

Commit 017bfa5

Browse files
committed
Redirects to top level files to avoid 404s for truncated docs URLs
1 parent 2decd5c commit 017bfa5

File tree

1 file changed

+209
-1
lines changed

1 file changed

+209
-1
lines changed

astro.config.mjs

Lines changed: 209 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,215 @@ export default defineConfig({
6060
"/design/pages/set-language-for-pages/":
6161
"/design/content-customization/set-language-for-pages/",
6262
"/design/pages/internationalization/":
63-
"/design/content-customization/set-language-for-pages/"
63+
"/design/content-customization/set-language-for-pages/",
64+
65+
// Section-level redirects to prevent 404s when users truncate URLs
66+
"/authenticate/":
67+
"/authenticate/about-auth/about-authentication/",
68+
"/billing/":
69+
"/billing/about-billing/about-billing/",
70+
"/build/":
71+
"/build/applications/about-applications/",
72+
"/contribute/":
73+
"/contribute/",
74+
"/design/":
75+
"/design/brand/global-brand-defaults/",
76+
"/developer-tools/":
77+
"/developer-tools/about/our-sdks/",
78+
"/get-started/":
79+
"/get-started/apis-and-sdks/about-kinde-apis/",
80+
"/integrate/":
81+
"/integrate/connected-apps/add-connected-apps/",
82+
"/machine-to-machine-applications/":
83+
"/machine-to-machine-applications/about-m2m/index/",
84+
"/manage-your-account/":
85+
"/manage-your-account/business-information/update-your-details/",
86+
"/manage-users/":
87+
"/manage-users/about/index/",
88+
"/properties/":
89+
"/properties/about-properties/index/",
90+
"/releases/":
91+
"/releases/about/about-feature-flags/",
92+
"/trust-center/":
93+
"/trust-center/agreements/terms-of-service/",
94+
"/workflows/":
95+
"/workflows/about-workflows/index/",
96+
97+
// Authenticate section subfolder redirects
98+
"/authenticate/about-auth/":
99+
"/authenticate/about-auth/about-authentication/",
100+
"/authenticate/auth-guides/":
101+
"/authenticate/auth-guides/enterprise-connections-identity/",
102+
"/authenticate/authentication-methods/":
103+
"/authenticate/authentication-methods/email-authentication/",
104+
"/authenticate/custom-configurations/":
105+
"/authenticate/custom-configurations/authentication-experience/",
106+
"/authenticate/enterprise-connections/":
107+
"/authenticate/enterprise-connections/about-enterprise-connections/",
108+
"/authenticate/manage-authentication/":
109+
"/authenticate/manage-authentication/authenticated-sessions-across-multiple-applications/",
110+
"/authenticate/multi-factor-auth/":
111+
"/authenticate/multi-factor-auth/about-multi-factor-authentication/",
112+
"/authenticate/social-sign-in/":
113+
"/authenticate/social-sign-in/add-social-sign-in/",
114+
115+
// Billing section subfolder redirects
116+
"/billing/about-billing/":
117+
"/billing/about-billing/about-billing/",
118+
"/billing/billing-user-experience/":
119+
"/billing/billing-user-experience/add-pricing-table/",
120+
"/billing/get-started/":
121+
"/billing/get-started/add-billing-role/",
122+
"/billing/manage-plans/":
123+
"/billing/manage-plans/about-plans/",
124+
"/billing/manage-subscribers/":
125+
"/billing/manage-subscribers/add-metered-usage/",
126+
"/billing/payment-management/":
127+
"/billing/payment-management/manage-stripe-connection/",
128+
"/billing/pricing/":
129+
"/billing/pricing/pricing-models/",
130+
131+
// Build section subfolder redirects
132+
"/build/applications/":
133+
"/build/applications/about-applications/",
134+
"/build/domains/":
135+
"/build/domains/pointing-your-domain/",
136+
"/build/env-variables/":
137+
"/build/env-variables/add-manage-env-variables/",
138+
"/build/environments/":
139+
"/build/environments/environments/",
140+
"/build/organizations/":
141+
"/build/organizations/add-and-manage-organizations/",
142+
"/build/set-up-options/":
143+
"/build/set-up-options/access-policies/",
144+
"/build/tokens/":
145+
"/build/tokens/about-access-tokens/",
146+
147+
// Design section subfolder redirects
148+
"/design/brand/":
149+
"/design/brand/global-brand-defaults/",
150+
"/design/content-customization/":
151+
"/design/content-customization/how-content-is-managed/",
152+
"/design/customize-with-code/":
153+
"/design/customize-with-code/connect-repo/",
154+
"/design/pages/":
155+
"/design/pages/page-layout/",
156+
157+
// Developer tools section subfolder redirects
158+
"/developer-tools/about/":
159+
"/developer-tools/about/our-sdks/",
160+
"/developer-tools/account-api/":
161+
"/developer-tools/account-api/about-account-api/",
162+
"/developer-tools/guides/":
163+
"/developer-tools/guides/code-sync-errors/",
164+
"/developer-tools/kinde-api/":
165+
"/developer-tools/kinde-api/about-m2m-scopes/",
166+
"/developer-tools/sdks/backend/":
167+
"/developer-tools/sdks/backend/apollo-graphql/",
168+
"/developer-tools/sdks/frontend/":
169+
"/developer-tools/sdks/frontend/javascript-sdk/",
170+
"/developer-tools/sdks/native/":
171+
"/developer-tools/sdks/native/android-sdk/",
172+
"/developer-tools/your-apis/":
173+
"/developer-tools/your-apis/access-to-your-api/",
174+
175+
// Get started section subfolder redirects
176+
"/get-started/apis-and-sdks/":
177+
"/get-started/apis-and-sdks/about-kinde-apis/",
178+
"/get-started/connect/":
179+
"/get-started/connect/callback-urls/",
180+
"/get-started/guides/":
181+
"/get-started/guides/byo-code/",
182+
"/get-started/learn-about-kinde/":
183+
"/get-started/learn-about-kinde/kinde-product-security/",
184+
"/get-started/switch-to-kinde/":
185+
"/get-started/switch-to-kinde/auth0-to-kinde/",
186+
"/get-started/team-and-account/":
187+
"/get-started/team-and-account/add-team-members/",
188+
189+
// Integrate section subfolder redirects
190+
"/integrate/connected-apps/":
191+
"/integrate/connected-apps/add-connected-apps/",
192+
"/integrate/third-party-tools/":
193+
"/integrate/third-party-tools/cloudflare-zero-trust/",
194+
"/integrate/webhooks/":
195+
"/integrate/webhooks/about-webhooks/",
196+
197+
// Machine-to-machine applications section subfolder redirects
198+
"/machine-to-machine-applications/about-m2m/":
199+
"/machine-to-machine-applications/about-m2m/authenticate-with-m2m/",
200+
"/machine-to-machine-applications/m2m-application-setup/":
201+
"/machine-to-machine-applications/m2m-application-setup/add-feature-flags-to-m2m-applications/",
202+
"/machine-to-machine-applications/m2m-token-customization/":
203+
"/machine-to-machine-applications/m2m-token-customization/customize-m2m-tokens/",
204+
"/machine-to-machine-applications/m2m-workflow-automation/":
205+
"/machine-to-machine-applications/m2m-workflow-automation/m2m-workflow/",
206+
"/machine-to-machine-applications/organization-scoped-m2m-apps/":
207+
"/machine-to-machine-applications/organization-scoped-m2m-apps/enforce-org-m2m-access-in-your-api/",
208+
"/machine-to-machine-applications/troubleshooting-m2m/":
209+
"/machine-to-machine-applications/troubleshooting-m2m/troubleshoot-m2m-token-errors/",
210+
211+
// Manage your account section subfolder redirects
212+
"/manage-your-account/business-information/":
213+
"/manage-your-account/business-information/change-your-business-time-zone/",
214+
"/manage-your-account/profile-and-plan/":
215+
"/manage-your-account/profile-and-plan/change-kinde-plan/",
216+
"/manage-your-account/your-data/":
217+
"/manage-your-account/your-data/check-your-mau/",
218+
219+
// Manage users section subfolder redirects
220+
"/manage-users/about/":
221+
"/manage-users/about/index/",
222+
"/manage-users/access-control/":
223+
"/manage-users/access-control/accept-policies-signup/",
224+
"/manage-users/add-and-edit/":
225+
"/manage-users/add-and-edit/add-and-edit-users/",
226+
"/manage-users/roles-and-permissions/":
227+
"/manage-users/roles-and-permissions/apply-roles-and-permissions-to-users/",
228+
"/manage-users/view-activity/":
229+
"/manage-users/view-activity/hotjar/",
230+
231+
// Properties section subfolder redirects
232+
"/properties/about-properties/":
233+
"/properties/about-properties/application-properties/",
234+
"/properties/work-with-properties/":
235+
"/properties/work-with-properties/manage-properties/",
236+
237+
// Releases section subfolder redirects
238+
"/releases/about/":
239+
"/releases/about/about-feature-flags/",
240+
"/releases/feature-flags/":
241+
"/releases/feature-flags/add-feature-flag/",
242+
"/releases/guides/":
243+
"/releases/guides/guide-to-app-store-approvals/",
244+
245+
// Trust center section subfolder redirects
246+
"/trust-center/agreements/":
247+
"/trust-center/agreements/end-user-licence-agreement/",
248+
"/trust-center/kinde-performance/":
249+
"/trust-center/kinde-performance/service-status/",
250+
"/trust-center/privacy-and-compliance/":
251+
"/trust-center/privacy-and-compliance/compliance/",
252+
"/trust-center/security/":
253+
"/trust-center/security/security-at-kinde/",
254+
255+
// Workflows section subfolder redirects
256+
"/workflows/about-workflows/":
257+
"/workflows/about-workflows/index/",
258+
"/workflows/bindings/":
259+
"/workflows/bindings/access-token-binding/",
260+
"/workflows/configuration/":
261+
"/workflows/configuration/bindings/",
262+
"/workflows/example-workflows/":
263+
"/workflows/example-workflows/existing-password-provided-workflow/",
264+
"/workflows/getting-started/":
265+
"/workflows/getting-started/connect-repo-for-workflows/",
266+
"/workflows/manage-workflows/":
267+
"/workflows/manage-workflows/create-workflow/",
268+
"/workflows/observability/":
269+
"/workflows/observability/workflow-build-logs/",
270+
"/workflows/testing/":
271+
"/workflows/testing/index/"
64272
},
65273
markdown: {
66274
rehypePlugins: [

0 commit comments

Comments
 (0)