Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Jun 28, 2023

Conversation

rista404
Copy link
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
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
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 <[email protected]>
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 <[email protected]>
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