Skip to content

fix(blog): use original filename for GitHub edit URL#528

Merged
stasadev merged 1 commit intoddev:mainfrom
stasadev:20260203_stasadev_fix_edit_page
Feb 3, 2026
Merged

fix(blog): use original filename for GitHub edit URL#528
stasadev merged 1 commit intoddev:mainfrom
stasadev:20260203_stasadev_fix_edit_page

Conversation

@stasadev
Copy link
Member

@stasadev stasadev commented Feb 3, 2026

The Issue

404 link to https://github.com/ddev/ddev.com/tree/main/src/content/blog/release-v1250.md

image

How This PR Solves The Issue

Fixes issue where blog posts with dots in filename (e.g., release-v1.25.0.md) had incorrect edit URLs. Astro's entry.id removes dots for URL safety, so we now extract the original filename from entry.filePath instead.

Manual Testing Instructions

Click "Edit this page" in https://pr-528.ddev-com-fork-previews.pages.dev/blog/release-v1250/

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

Fixes issue where blog posts with dots in filename (e.g., release-v1.25.0.md)
had incorrect edit URLs. Astro's entry.id removes dots for URL safety, so we
now extract the original filename from entry.filePath instead.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

🌐 Fork Preview for PR #528

https://pr-528.ddev-com-fork-previews.pages.dev

This preview updates automatically when you push changes to your fork.

@stasadev stasadev merged commit bee3325 into ddev:main Feb 3, 2026
4 checks passed
@stasadev stasadev deleted the 20260203_stasadev_fix_edit_page branch February 3, 2026 18:00
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

PR closed. The Cloudflare Pages preview is no longer updated.

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.

1 participant