Skip to content

Fix footer canonical URL in liquid template#27

Merged
dsghi merged 2 commits intomainfrom
worktree-fix-footer-url
Mar 21, 2026
Merged

Fix footer canonical URL in liquid template#27
dsghi merged 2 commits intomainfrom
worktree-fix-footer-url

Conversation

@dsghi
Copy link
Copy Markdown
Owner

@dsghi dsghi commented Mar 21, 2026

Summary

  • Fix: EdgeUrl is a plain string property on AutoBlogPart, not a TextField — removed .Text accessor so the stored canonical URL renders correctly in the post footer instead of falling back to an empty href (which browsers resolve to the current page URL)
  • Version bump: 1.6.4 → 1.6.5

Test plan

  • Deploy to test site, view an AutoBlogPost, confirm footer link points to the canonical URL (e.g. yourtechupdates.com/...) not the local site URL

🤖 Generated with Claude Code

EdgeUrl is a plain string property, not a TextField — remove .Text
accessor so the stored canonical URL renders correctly instead of
resolving to the current page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 21, 2026 01:44
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

This PR fixes rendering of the canonical source URL in the AutoBlog post footer by treating EdgeUrl as a plain string (instead of a TextField), and bumps the module’s displayed version.

Changes:

  • Update Content-AutoBlogPost.liquid to use autoblogPart.EdgeUrl directly (remove .Text) for the footer canonical link.
  • Bump Constants.Version from 1.6.4 to 1.6.5.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/IgniteSG.OrchardCore.MspMarketingEdge/Views/Content-AutoBlogPost.liquid Fix footer link to render stored canonical URL string correctly.
src/IgniteSG.OrchardCore.MspMarketingEdge/Constants.cs Update displayed module version constant.

EdgeUrl originates from an external feed and is rendered directly into
an href attribute. Without scheme validation a compromised feed could
inject javascript: or other dangerous URIs. Validate with Uri.TryCreate
at the storage boundary (ResolveCanonicalUrlAsync) and also re-validate
previously-stored values in the update path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dsghi dsghi merged commit e7af606 into main Mar 21, 2026
1 check passed
@dsghi dsghi deleted the worktree-fix-footer-url branch March 21, 2026 01:55
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