Skip to content

Fix broken links in blog posts - #697

Merged
madolson merged 1 commit into
valkey-io:mainfrom
danielfrankcom:fix-blog-links
Oct 15, 2026
Merged

madolson merged 1 commit into
valkey-io:mainfrom
danielfrankcom:fix-blog-links

Conversation

@danielfrankcom

Copy link
Copy Markdown
Contributor

Description

Fixes the two broken internal links in blog posts that the link check in #694 reports:

  • [HGETEX]((/commands/hgetex)) has doubled parentheses, so it links to /blog/hash-fields-expiration/(/commands/hgetex).
  • /events/keyspace-2025#register points at a section that was replaced by the recorded talks after the event (Update Keyspace event page with video and slides #356). This links to the event page instead.

I'm not sure it makes sense to fix external links in old blog posts, but these 2 are either internally inconsistent or malformed which seems like it's worth fixing.

Issues Resolved

None filed.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@danielfrankcom
danielfrankcom requested a review from a team as a code owner October 13, 2026 16:17
@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 1d73ffe1-bf99-4ad9-84fd-ed5022cc322a
📥 Commits

Reviewing files that changed from the base of the PR and between 10fa3e7 and 6f7475f.

📒 Files selected for processing (2)
  • content/blog/2025-08-12-keyspace-schedule.md
  • content/blog/2025-09-30-hash-fields-expiration/index.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

Two blog pages received link corrections. The Keyspace 2025 announcement registration link now targets the event page. The HGETEX example now links to the corrected command documentation path.

Changes: Keyspace 2025 Registration Link

Layer / File(s) Summary
Update registration link
content/blog/2025-08-12-keyspace-schedule.md
The registration link now targets /events/keyspace-2025/.

HGETEX Documentation Link

Layer / File(s) Summary
Correct HGETEX link
content/blog/2025-09-30-hash-fields-expiration/index.md
The HGETEX link now uses the corrected /commands/hgetex path.

Suggested reviewers: madolson

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 6f747

Both corrected internal links reach their intended pages; no actionable merge risk remains.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low impact] Safe to merge. The changes correct internal links without introducing an actionable issue.

T-Rex evidence

Evidence from the check

  • The executed script builds and serves both revisions, inspects the targeted anchor in Chromium, and captures matching recordings and screenshots; it checks URL correctness without requesting command destinations.

Command output from the check

  • The captured execution output includes command metadata and literal and resolved anchor URLs from both browser runs; the corrected HGETEX URL assertions passed with exit code 0.

▶ Recording of the check

  • Chromium loads the base blog and holds focus on HGETEX beside HSETEX; the accompanying DOM evidence shows the old malformed blog-relative destination.

Browser screenshot of the targeted paragraph before the fix

  • The screenshot captures the base blog at the targeted HGETEX paragraph; it provides the matching visual context for the before recording.

▶ Recording of the check

  • Chromium loads the PR blog and holds focus on the same HGETEX link; the accompanying DOM evidence confirms the corrected site-root command URL.

Browser screenshot of the targeted paragraph after the fix

  • The screenshot captures the PR blog at the same HGETEX paragraph; it provides the matching visual context for the after recording.

View artifacts

Summary

Fixes two internal links in older blog posts:

  • The Keyspace registration link now opens the event page directly.
  • The hash expiration post now links HGETEX to its command page.

No actionable issues found. Safe to merge.

Acknowledged intentional choice: danielfrankcom explicitly chose the event page as the replacement destination. The historical registration wording remains unchanged; registration was replaced by recordings.

Reviews (1) · Last reviewed commit: "Fix broken links in blog posts" · Reviewed by Greptile

@Andriciuc Andriciuc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@madolson madolson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good.

@madolson
madolson merged commit 54c53c0 into valkey-io:main Oct 15, 2026
6 checks passed
madolson added a commit that referenced this pull request Oct 30, 2026
The site has 18 broken internal links at the time of writing. This
change adds checks so new ones fail the PR that introduces them, and so
existing ones are reported for cleanup during deployment.

There are 2 separate checks:

- Internal links to missing pages or `#anchors` are caught using
[lychee](https://lychee.cli.rs/), which is also used by
`valkey-glide-docs`, `valkey-developer-resources`, and
`valkey-glide-csharp`. `https://valkey.io/...` links are checked against
the build too.
- `valkey-doc` links that `fix_links` didn't convert (still `../` or
`.md`) are caught with a script added by this change. They can't be
reliably caught by lychee since they can still point to a real page,
just not the correct one. For example, `../clients/` on
`/topics/installation/` opened `/topics/clients/` until #690.

Both checks run locally against the built site, so network problems
won't impact them.

### How the checks work

Since the source for many of these links comes from other repos, I tried
to structure this in a way that it wouldn't unduly block
development/deployment in this repo. The easiest thing to do would be to
block all PR merges and deployments if there are broken links, but doing
that would require updating other repos before anything can be processed
through this repo. That seems undesirable for low priority link
breakages, which might take a long time to fix and filter through to
this repo.

For example, valkey-io/valkey#4845 fixes the `#attribute-type` link on
`/topics/modules-api-ref/`, but `modules-api-ref.md` is only regenerated
at a valkey X.Y.0 release. Blocking would hold back every deploy until
then.

To avoid this dependency problem, pull requests fail only when the PR
itself breaks links. The check builds the base and the PR and compares
them, so links already broken on `main` are listed but don't fail it.
Broken links in dependency repos like `valkey-doc` will only surface
during a deployment, where I've configured the failures to be visible
but not block the deployment. I think this is a decent first step, as it
gives visibility to breakages which were previously invisible without
blocking anything.

### Current broken links

I have opened PRs for most of the current link problems:

- #689: 2 unconverted links on `/topics/search/` and the 2 missing pages
they lead to
- valkey-io/valkey-doc#502: 11 missing anchors
- valkey-io/valkey#4845: 1 missing anchor, `modules-api-ref.md` needs to
be regenerated after
- #697: 2 internal links in blog posts

### Limits

- External links aren't checked. That could be done in the future with
`lychee`.
- `#:~:text=` fragments aren't checked, because lychee's support was
unreliable in testing. It seems like a new feature so I think this could
be enabled in the future.
- Failures do not block deployment. This has the upside of not blocking
deployment waiting for things to be merged in other repos, but has the
downside of allowing broken links to propagate to user-visible sites (as
they already do now). The main aim here is to add visibility.

### Check List
- [x] Commits are signed per the DCO using `--signoff`

By submitting this pull request, I confirm that my contribution is made
under the terms of the BSD-3-Clause License.

---------

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
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.

3 participants