Skip to content

Fix merchant blog resolution and Studio routing - #16

Merged
hta218 merged 3 commits into
mainfrom
fix/blog-routing-and-studio
Nov 12, 2026
Merged

hta218 merged 3 commits into
mainfrom
fix/blog-routing-and-studio

Conversation

@thanh251

Copy link
Copy Markdown
Contributor

Summary

Resolve blog and article content from the connected Shopify store instead of relying on Aspen’s demo blog.

  • Preserve parent blog identity in article links, CMS requests and cache keys, including articles with identical handles in different blogs.
  • Keep Aspen’s existing storefront URL structure and update menus, search results, sharing links, canonical metadata and sitemaps.
  • Add /blog/:handle for Studio blog navigation and render standard full article paths directly without redirects.
  • Upgrade @weaverse/hydrogen to 5.23.0 for typed theme route declarations.
  • Correct localized article redirects and omit sitemap modification dates when duplicate handles make attribution ambiguous.

Validation

  • 23 regression tests passed, including real SDK request and cache isolation tests.
  • Typecheck, lint, GraphQL codegen and production build passed.
  • Verified localhost routes and Studio blog/article navigation, including French localization.
  • Multi-blog and duplicate-handle scenarios covered using fixtures and the real SDK with mocked API transport.

Scope

Covers merchant blog resolution and Studio navigation only. Other identified route issues are deferred to separate work.

Closes #14
Closes #15

@thanh251 thanh251 added the bug Something isn't working label Nov 11, 2026
@thanh251
thanh251 requested a review from hta218 November 11, 2026 08:40

@hta218 hta218 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please preserve the selected blog in the Articles section's View All link before merging. The main merchant-blog and Studio-routing fixes look addressed, but this remaining link still sends shoppers to a different blog.

Validation: 21 blog/CMS regression tests and typecheck passed on Node 24. Browser/Studio behavior was not independently exercised.

Comment thread app/sections/articles/index.tsx Resolved
@thanh251
thanh251 requested a review from hta218 November 12, 2026 02:50

@hta218 hta218 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The original View All finding is fixed. One existing browser regression in the same file still fails and needs its fixture/assertion updated, as noted inline. Typecheck and the 21 blog/CMS unit tests passed.

@thanh251 Please also resolve the overlap with the now-merged #17 against current main in app/utils/root.server.ts and app/routes/($locale).sitemap.$type.$page[.xml].tsx. Preserve both PRs' menu and sitemap behavior, then rerun both regression suites after resolving the conflicts. Do not drop either fix while resolving them.

Comment thread tests/articles-view-more.browser.mjs Resolved
@thanh251
thanh251 requested a review from hta218 November 12, 2026 08:05

@hta218 hta218 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-reviewed 10b964c after the fixture correction and main merge. Both previous findings are addressed. All 56 blog, CMS, route and browser regressions passed, including the full Articles browser file and menu/sitemap coverage after conflict resolution. Typecheck passed. No remaining actionable findings in this candidate. Live Shopify/Studio deployment flows were not exercised.

@hta218
hta218 merged commit 2379803 into main Nov 12, 2026
1 check passed
@thanh251
thanh251 deleted the fix/blog-routing-and-studio branch November 13, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Declare custom blog and article routes for Studio navigation Resolve merchant blogs instead of hardcoding the demo blog handle

2 participants