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

[React][NextJs] Handle Sitecore querystring property in Link component #929

Merged
merged 2 commits into from
Feb 9, 2022

Conversation

ambrauer
Copy link
Contributor

@ambrauer ambrauer commented Feb 8, 2022

Description / Motivation

Sitecore allows configuration of a query string for internal links. Make sure these are rendered properly for React (anchor) and NextJs (next/link).

This PR also fixes an issue for NextJs where the rendered markup would contain invalid attributes e.g. field="[object Object]".

Testing Details

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@ambrauer ambrauer requested a review from a team February 8, 2022 18:10
@vercel
Copy link

vercel bot commented Feb 8, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sitecore-jss/edge-e2e-styleguide/9TdKkHf2mkDsLTQDx2zb1cTfTNsE
✅ Preview: Failed

Copy link
Contributor

@addy-pathania addy-pathania left a comment

Choose a reason for hiding this comment

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

Looks good!

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.

[Bug] [JSS] [Nextjs] Link field prop is incorrectly passed to HTML Anchor element.
2 participants