Skip to content

Use shop.primaryDomain to mark internal links in demo store#1036

Merged
blittle merged 4 commits intoShopify:2023-04from
rista404:fix-internal-nav-links
Jun 28, 2023
Merged

Use shop.primaryDomain to mark internal links in demo store#1036
blittle merged 4 commits intoShopify:2023-04from
rista404:fix-internal-nav-links

Conversation

@rista404
Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Fixes #1035

WHAT is this pull request doing?

Checking if the nav item url host matches the shop.primaryDomain's host, and marks the nav item as internal if so. Previously it was a simple regex.

HOW to test your changes?

Spin up the demo store and see that the nav links are indeed internal.

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

@juanpprieto
Copy link
Copy Markdown
Contributor

Thanks @rista404 you beat us to it. Could you please sign the CLA and add a changeset npm run changeset for a demo-store patch? CC @blittle

Copy link
Copy Markdown
Contributor

@blittle blittle left a comment

Choose a reason for hiding this comment

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

Thank you for submitting this!

@blittle blittle merged commit c5511f3 into Shopify:2023-04 Jun 28, 2023
juanpprieto pushed a commit that referenced this pull request Jul 10, 2023
Use shop.primaryDomain to mark internal links

---------

Co-authored-by: Bret Little <bret.little@shopify.com>
FrcPpe pushed a commit to FrcPpe/hydrogen that referenced this pull request Aug 13, 2023
…y#1036)

Use shop.primaryDomain to mark internal links

---------

Co-authored-by: Bret Little <bret.little@shopify.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.

Demo store navigation links broken

3 participants