Skip to content

Commit 0066fad

Browse files
committed
Redirect TBMQ legal pages to tbmq.io
The deleted /products/mqtt-broker/privacy-policy/ and terms-of-use/ would otherwise 404: the existing /products/mqtt-broker/ rule is an exact path, not a prefix, so it doesn't cover them. tbmq.io serves both under a /product/ prefix, so each needs its own rule rather than a splat.
1 parent a21e027 commit 0066fad

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

public/_redirects

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,8 @@
10501050
/community/ / 301
10511051
/services/support/ /services/ 301
10521052
/products/mqtt-broker/ https://tbmq.io/ 301
1053+
/products/mqtt-broker/privacy-policy/ https://tbmq.io/product/privacy-policy/ 301
1054+
/products/mqtt-broker/terms-of-use/ https://tbmq.io/product/terms-of-use/ 301
10531055
/resources/tbmq-demo-root-ca.pem https://tbmq.io/resources/tbmq-demo-root-ca.pem 301
10541056
/products/trendz/trndz-request-demo/ /products/trendz/request-demo/ 301
10551057
/images/trendz/trndz-request-demo/ /products/trendz/request-demo/ 301

src/data/redirects.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,9 +1345,11 @@ export const NON_DOCS_REDIRECTS: Record<string, string> = {
13451345
// TBMQ — moved to tbmq.io, whose site root is the product landing. The old
13461346
// landing page file and its subtree (MqttBroker components, tbmqNews data,
13471347
// landing images) are deleted; this rule serves old bookmarks and inbound
1348-
// links in every mode. Its legal children (privacy-policy/, terms-of-use/)
1349-
// stay on thingsboard.io on purpose — tbmq.io has no equivalents for them yet.
1348+
// links in every mode. The legal pages moved too, under a /product/ prefix
1349+
// that doesn't match the old path, so they need their own rules.
13501350
'/products/mqtt-broker/': `${TBMQ_ORIGIN}/`,
1351+
'/products/mqtt-broker/privacy-policy/': `${TBMQ_ORIGIN}/product/privacy-policy/`,
1352+
'/products/mqtt-broker/terms-of-use/': `${TBMQ_ORIGIN}/product/terms-of-use/`,
13511353
// Demo CA cert removed with the TBMQ docs; the TBMQ site serves its own copy
13521354
'/resources/tbmq-demo-root-ca.pem': `${TBMQ_ORIGIN}/resources/tbmq-demo-root-ca.pem`,
13531355

0 commit comments

Comments
 (0)