Skip to content

Fix footer EdgeUrl access in liquid template#28

Merged
dsghi merged 1 commit intomainfrom
fix/footer-edgeurl-path
Mar 21, 2026
Merged

Fix footer EdgeUrl access in liquid template#28
dsghi merged 1 commit intomainfrom
fix/footer-edgeurl-path

Conversation

@dsghi
Copy link
Copy Markdown
Owner

@dsghi dsghi commented Mar 21, 2026

Summary

  • The {% assign autoblogPart %} variable doesn't resolve plain CLR string properties from ContentPart JSON — only nested content field accessors (like .Value) work through it
  • Access EdgeUrl via the full Model.ContentItem.Content.AutoBlogPart.EdgeUrl path so the canonical URL renders correctly in the footer href

Test plan

  • View an AutoBlogPost on the test site and confirm the footer link points to the canonical URL (e.g. yourtechupdates.com/...)

🤖 Generated with Claude Code

The assigned autoblogPart variable doesn't resolve plain string
properties from the ContentPart JSON. Access EdgeUrl via the full
Model.ContentItem.Content path so the canonical URL renders correctly
in the footer href.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 21, 2026 02:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the canonical URL link rendered in the AutoBlogPost footer by reading EdgeUrl directly from the ContentItem.Content.AutoBlogPart JSON path (rather than via the previously assigned autoblogPart variable), so the footer <a href> resolves correctly.

Changes:

  • Assign edgeUrl from Model.ContentItem.Content.AutoBlogPart.EdgeUrl.
  • Update the footer conditional and link href to use edgeUrl.

@dsghi dsghi merged commit a842f5e into main Mar 21, 2026
5 checks passed
@dsghi dsghi deleted the fix/footer-edgeurl-path branch March 21, 2026 02:43
@dsghi dsghi restored the fix/footer-edgeurl-path branch March 21, 2026 02:43
@dsghi dsghi mentioned this pull request Mar 21, 2026
@dsghi dsghi deleted the fix/footer-edgeurl-path branch March 21, 2026 02:46
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