Skip to content

refactor(tbmq): drop TBMQ legal pages superseded by tbmq.io - #630

Merged
vvlladd28 merged 2 commits into
thingsboard:mainfrom
dmytro-landiak:remove-tbmq-legal-pages
Aug 27, 2026
Merged

refactor(tbmq): drop TBMQ legal pages superseded by tbmq.io#630
vvlladd28 merged 2 commits into
thingsboard:mainfrom
dmytro-landiak:remove-tbmq-legal-pages

Conversation

@dmytro-landiak

@dmytro-landiak dmytro-landiak commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What

Deletes the two TBMQ legal pages from thingsboard.io:

  • src/pages/products/mqtt-broker/privacy-policy.astro
  • src/pages/products/mqtt-broker/terms-of-use.astro

…along with their OG card entries in src/pages/open-graph/_shared/marketing-meta.ts. The src/pages/products/mqtt-broker/ directory is now empty and gone.

Why

The TBMQ privacy policy and terms of use now live on the product site:

demo.tbmq.io links to those directly, so inbound traffic no longer originates here. On thingsboard.io the two pages were orphaned by the TBMQ landing-page removal — nothing linked them but each other.

Redirects

Both old paths now 301 to their tbmq.io equivalents, added to NON_DOCS_REDIRECTS in src/data/redirects.ts and regenerated into public/_redirects with pnpm generate:redirects:

/products/mqtt-broker/privacy-policy/ https://tbmq.io/product/privacy-policy/ 301
/products/mqtt-broker/terms-of-use/   https://tbmq.io/product/terms-of-use/   301

They need their own rules rather than a splat: the existing /products/mqtt-broker/ → https://tbmq.io/ rule is an exact path, not a prefix, and the new site nests the pages under a /product/ prefix that doesn't map 1:1 onto the old one. Without these, the deleted pages would 404.

public/redirects.json is unchanged — it only carries /docs/*. astro.redirects.ts spreads NON_DOCS_REDIRECTS, so pnpm dev / pnpm preview pick the rules up automatically.

Verification

  • No reference to either page remains anywhere in the repo — source, marketing-meta.ts, sitemap
  • No other-language variants
  • Both redirect targets return 200 (verified with curl)
  • _redirects totals 1091 static + 47 dynamic — well inside the Cloudflare Pages 2,000 / 100 limits
  • pnpm check — 0 errors, 0 warnings
  • pnpm lint:eslint — clean

pnpm lint:linkcheck has not been run yet (needs a full build).

The TBMQ privacy policy and terms of use now live on the product site at
tbmq.io/product/privacy-policy/ and tbmq.io/product/terms-of-use/, which
demo.tbmq.io links to directly. The thingsboard.io copies were orphaned
by the TBMQ landing-page removal — nothing linked them but each other.

No redirects added: the paths do not map 1:1 onto the new site, and the
inbound traffic now originates from demo.tbmq.io rather than here.

Also drops their OG card entries from marketing-meta.ts.
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.
@vvlladd28
vvlladd28 merged commit d45d763 into thingsboard:main Aug 27, 2026
4 of 5 checks passed
@dmytro-landiak
dmytro-landiak deleted the remove-tbmq-legal-pages branch August 27, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants