Skip to content

Commit 10f7b81

Browse files
kbatuigasKat Batuigas
andauthored
Ensure Cloud API beta pre-split pages redirect to current API docs (#133)
* Ensure Cloud API beta pre-split pages redirect to current API docs * Forgot new url * Ensure the quickstart redirect is executed before bulk redirect for old cloud pages * Try Edge function --------- Co-authored-by: Kat Batuigas <[email protected]>
1 parent bfc52b2 commit 10f7b81

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

netlify.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,12 @@ from = "/23.3/get-started/quick-start-cloud/"
341341
to = "/redpanda-cloud/get-started/cluster-types/dedicated/quick-start-cloud/"
342342
status = 301
343343

344+
# Old quickstart from beta release
345+
[[redirects]]
346+
from = "/current/deploy/deployment-option/cloud/api/cloud-api-quickstart"
347+
to = "/api/doc/cloud-controlplane/topic/topic-quickstart/"
348+
status = 301
349+
344350
[[redirects]]
345351
from = "/current/deploy/deployment-option/cloud/*"
346352
to = "/redpanda-cloud/deploy/deployment-option/cloud/:splat"

netlify/edge-functions/proxy-api-docs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default async (request, context) => {
66

77
// Redirects from old API paths to new ones
88
const redirects = {
9+
"/api/doc": "/api",
910
"/api/admin-api": "/api/doc/admin/",
1011
"/api/http-proxy-api": "/api/doc/http-proxy/",
1112
"/api/schema-registry-api": "/api/doc/schema-registry/",

0 commit comments

Comments
 (0)