Skip to content

Fix Edit button GitHub link after hugo directory migration - #39013

Merged
janine-c merged 1 commit into
masterfrom
janine/fix-edit-button-hugo-path
Aug 7, 2026
Merged

Fix Edit button GitHub link after hugo directory migration#39013
janine-c merged 1 commit into
masterfrom
janine/fix-edit-button-hugo-path

Conversation

@janine-c

@janine-c janine-c commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

The site's Edit button generates a GitHub link to the source file for the current page, but it pointed to content/<lang>/<path>. Content was recently moved into a hugo/ directory, so the generated link 404s. This updates the link to point to hugo/content/<lang>/<path>.

Merge readiness

  • Ready for merge

For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.
  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.

AI assistance

Used Claude Code to locate the Edit button link generation logic and update the path.

Additional notes

The Edit button pointed to content/<lang>/<path>, but content now
lives under hugo/content/ following the recent migration.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@janine-c
janine-c requested a review from a team as a code owner August 7, 2026 17:30
@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label Aug 7, 2026
@jhgilbert jhgilbert added the astro-reorg-no-conflicts Needs manual conflict resolution after replatforming reorg label Aug 7, 2026
@janine-c
janine-c merged commit a4fdb4e into master Aug 7, 2026
21 of 22 checks passed
@janine-c
janine-c deleted the janine/fix-edit-button-hugo-path branch August 7, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend astro-reorg-no-conflicts Needs manual conflict resolution after replatforming reorg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants