Skip to content

Fix broken external links and redirect problems - #498

Merged
mniestroj merged 6 commits into
mainfrom
fix/site-links-and-redirects
Nov 18, 2026
Merged

mniestroj merged 6 commits into
mainfrom
fix/site-links-and-redirects

Conversation

@mniestroj

Copy link
Copy Markdown
Contributor

Fix problems found by a site-wide link and redirect check of the docs.
All of them also exist on docs.golioth.io today; none comes from the SDK
v0.23.0 update.

  • External links: the pouch BLE GATT example moved to
    examples/zephyr/ble_gatt, Pipedream removed /apps/http (the HTTP
    trigger is on its Triggers page), and idf.espressif.com is a
    meta-refresh stub, so link Espressif's ESP-IDF page.
  • Redirects ending on missing pages: the two hardware catalog rules are
    removed (the /hardware catch-all takes those URLs), and the old
    LightDB concept page now goes to LightDB State. In docs-prod, the
    Device SDKs redirect and the firmware-upgrade slug rule now point at
    pages that exist.
  • Redirects that chained into the generic /firmware catch-all now go
    straight to their successor pages (Hardware, Stream client, Zephyr
    firmware update, Golioth Firmware SDK).
  • /concepts/console was shadowed by /concepts; it now shares the
    /golioth-console rule and goes to the Golioth Console page.
  • docs-dev and docs-prod now have the same redirects, so preview
    channels test what production serves. Two redundant docs-prod rules
    are dropped: a second /cloud/tiers rule and
    /cloud/output-streams/:streams* (same destination as the rule after
    it).
  • Pass-through rules such as /cloud/services/ota/:ota* sent old pages
    without a same-named successor to missing pages. The long-lived ones
    (firmware hardware catalog, QEMU quickstart, OTA artifact uploads and
    firmware releases, CLI choose-device) and the bare
    /cloud/services/lightdb now redirect to the page that holds their
    content.

Rules with the same destination are merged with {a,b} sources. This
leaves 50 redirects in each of docs-dev (46 before) and docs-prod
(51 before). Merges cleanly with the SDK v0.23.0 docs PR, which also
edits firebase.json.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 0d2804e):

https://golioth-docs-dev--pr498-fix-site-links-and-r-sria7gc8.web.app

(expires Fri, 18 Dec 2026 13:04:17 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f53b02bdc98ce6f5593931ec4c339aa96bac84df

@mniestroj
mniestroj requested a review from mpuricx November 18, 2026 12:54
The pouch BLE GATT example moved to examples/zephyr/ble_gatt, Pipedream
removed its /apps/http page (the HTTP trigger is now documented on the
Triggers page), and idf.espressif.com is a meta-refresh stub that ends
on a blog tag listing, so link the ESP-IDF product page instead.

Signed-off-by: Marcin Niestroj <marcin.niestroj@canonical.com>
The hardware catalog was dropped, so its two redirects, which go
through /firmware/hardware/catalog/..., ended on missing pages. Remove
them: the /hardware catch-all behind them takes these URLs like other
old hardware pages. The old LightDB concept page also ended on a
missing page; fold it into the /services/lightdb rule, which goes to
LightDB State. In docs-prod, the Device SDKs redirect pointed at a page
that no longer exists, and the firmware-upgrade slug fix lacked the
leading slash in its source and had a relative destination.

Signed-off-by: Marcin Niestroj <marcin.niestroj@canonical.com>
Several redirects pointed at /firmware/... URLs that are redirected
again. Most only took an extra hop, but the bare /firmware/hardware and
the old stream-client, fw-update-zephyr and Zephyr SDK pages fall
through to the generic /firmware catch-all, so the /hardware,
light-db-stream, dfu-sample-zephyr and Zephyr SDK redirects ended on
the Firmware overview instead of their successor pages.

Point these redirects at the successor pages directly. This adds no
rules for the old /firmware/... pages themselves; requests for them
still reach the Firmware overview through the catch-all.

In docs-prod the Zephyr SDK and Device SDKs redirects now share their
destination, so merge them into one rule.

Signed-off-by: Marcin Niestroj <marcin.niestroj@canonical.com>
The /concepts/console rule came after the /concepts catch-all, so it
never applied and the old Console concept page went to the home page.
Drop it and let the /golioth-console rule, which comes before
/concepts, cover it too: the Golioth Console page covers what the
concept page described.

Signed-off-by: Marcin Niestroj <marcin.niestroj@canonical.com>
Some redirects were only added to one target, so the preview channels
did not exercise the rules that production serves. Copy the missing
rules across (three to docs-dev, one to docs-prod) and drop two
redundant docs-prod rules: a second /cloud/tiers rule that the first
one always shadows, and /cloud/output-streams/:streams*, which has the
same destination as the /cloud/output-streams rule that follows it.

Signed-off-by: Marcin Niestroj <marcin.niestroj@canonical.com>
Rules like /cloud/services/ota/:ota* keep the rest of the path, so old
pages without a same-named successor ended on missing pages, and the
bare /cloud/services/lightdb, which /cloud/services/lightdb/:state*
does not match, ended on the generic Application Services page.

Ahead of the pass-through rules, redirect these to the page that now
holds their content: the firmware hardware catalog, the QEMU quickstart
pages, the bare /cloud/services/lightdb, and the CLI choose-device
page, now in one rule with the console one. The OTA artifact upload and
release pages also lived under /device-management/ota/, where no rule
caught them, so their rules cover both prefixes.

Signed-off-by: Marcin Niestroj <marcin.niestroj@canonical.com>

@mpuricx mpuricx left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mniestroj
mniestroj force-pushed the fix/site-links-and-redirects branch from 857e70d to 0d2804e Compare November 18, 2026 13:00
@mniestroj
mniestroj merged commit 4ecf480 into main Nov 18, 2026
1 check passed
@mniestroj
mniestroj deleted the fix/site-links-and-redirects branch November 18, 2026 13:00
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