Skip to content

Blogger: build full links from the blog's own address - #5

Merged
necessarylion merged 1 commit into
mainfrom
blogger-own-host-links
Nov 7, 2026
Merged

necessarylion merged 1 commit into
mainfrom
blogger-own-host-links

Conversation

@mydoxie

@mydoxie mydoxie commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Problem

On blog.sellrika.com, every page said its real address (canonical) was rika.shop.sellrika.com/blogs/.... That address redirects back to blog.sellrika.com. Search engines get a loop and may not index the posts. og:url, the structured data and the RSS links had the same wrong address.

Fix

  • The extension now builds every full link from ctx.storefront.url, the address its pages are served on.
  • New helper blogUrl() in assets/posts.ts.
  • On the store's own host nothing changes.

Checks

  • Type check, lint and tests are green. One new test for blogUrl().

The blog on its own host (blog.sellrika.com) said its real address was the store's /blogs page. That page redirects back to the blog host, so search engines got a loop.

Now the canonical tag, og:url, the structured data, the page links and the RSS feed use ctx.storefront.url. On the store's own host nothing changes.
@necessarylion
necessarylion merged commit 116a225 into main Nov 7, 2026
1 check passed
@necessarylion
necessarylion deleted the blogger-own-host-links branch November 7, 2026 01:29
@mydoxie mydoxie mentioned this pull request Nov 7, 2026
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