Skip to content

Blogger: build every link from the blog's base address - #3

Closed
necessarylion wants to merge 1 commit into
mainfrom
storefront-url-hook
Closed

necessarylion wants to merge 1 commit into
mainfrom
storefront-url-hook

Conversation

@necessarylion

Copy link
Copy Markdown
Member

Problem

The blog built its links from /blogs and store_url + /blogs. When the blog is served at the root of another host, its links pointed to the wrong place.

Fix

  • blogUrl(ctx) returns ctx.storefront.url. On an older app, it falls back to store_url + /blogs.
  • Post and tag links, nav, pager, canonical, og:url, JSON-LD and the RSS feed all use it.
  • Links to the shop itself (visit shop, /track, pictures) stay on store_url.
  • Some files only got Biome formatting.

Needs: sellrika/sellrika#58

Checks

  • Unit tests: 11 pass. Biome is clean.
  • y-blogger e2e: 6 pass. The back link is now absolute.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@necessarylion

Copy link
Copy Markdown
Member Author

Replaced by #9: the same design on today's code.

necessarylion pushed a commit that referenced this pull request Nov 7, 2026
…picture e2e test (#9)

Every post, tag, page and back link is now built from the blog's own address (look.blog), like #3 planned. The rewrite of the finished page is gone.

The e2e test still expected a base64 picture in a body to be refused. Since 1.1.0 it is saved as an upload. The test now checks that, and that a plain http picture is refused.

Co-authored-by: mydoxie <351276057+mydoxie@users.noreply.github.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.

1 participant