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

fix: added missing prop to fix pdp NextSeo component #2291

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

vivaltech
Copy link
Contributor

@vivaltech vivaltech commented Apr 24, 2024

What's the purpose of this pull request?

Fix the PDP seo title. The NextSeo component of the product page does not have the titleTemplate property, which is responsible for adding the titleTemplate to the title when navigating to the PDP directly.

Try to reproduce this issue by copy+paste the product url in the browser instead of navigating to the pdp.

native.issue.mp4

For example, the SearchPage component does have this property and works correctly:

image

How it works?

Adding the same property to the PDP component resolves the issue:

image

@vivaltech vivaltech requested a review from a team as a code owner April 24, 2024 12:58
@vivaltech vivaltech requested review from emersonlaurentino and lucasfp13 and removed request for a team April 24, 2024 12:58
Copy link

vercel bot commented Apr 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2024 8:43pm

Copy link

codesandbox-ci bot commented Apr 24, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

@lucasfp13 lucasfp13 left a comment

Choose a reason for hiding this comment

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

Nice! ✨

packages/core/src/pages/[slug]/p.tsx Outdated Show resolved Hide resolved
@emersonlaurentino emersonlaurentino merged commit 3f60548 into vtex:main Apr 25, 2024
3 checks passed
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.

None yet

3 participants