Skip to content

fix: Update search results description formatting - #3128

Merged
eduardoformiga merged 1 commit into
devfrom
fix/search-page-seo-data
Nov 26, 2025
Merged

eduardoformiga merged 1 commit into
devfrom
fix/search-page-seo-data

Conversation

@eduardoformiga

Copy link
Copy Markdown
Member

What's the purpose of this pull request?

This PR aims to fix the source code to show undefined searchTerm.
Screenshot 2025-11-20 at 19 01 42

How it works?

  1. The source code can't access the searchTerm from the build time; thus, this page uses the default
Screenshot 2025-11-20 at 18 42 43
  1. The final code (runtime code after hydration, you can see the element tab in the devtools), can access the dynamic search term and uses it.
Screenshot 2025-11-20 at 18 42 05

How to test it?

You can run pnpm build && pnpm serve and view the source code (right-click> Source Code). Additionally, you can view the final code using the Element tab in the DevTools.

@eduardoformiga
eduardoformiga requested a review from a team as a code owner November 20, 2025 22:23
@eduardoformiga
eduardoformiga requested review from emersonlaurentino and hellofanny and removed request for a team November 20, 2025 22:23
@codesandbox-ci

Copy link
Copy Markdown

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.

@lemagnetic lemagnetic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@eduardoformiga
eduardoformiga merged commit 73fb9ed into dev Nov 26, 2025
@eduardoformiga
eduardoformiga deleted the fix/search-page-seo-data branch November 26, 2025 15:37
thiagopereira-vtex pushed a commit that referenced this pull request Jan 8, 2026
## What's the purpose of this pull request?

This PR aims to fix the source code to show `undefined` `searchTerm`.
<img width="916" height="811" alt="Screenshot 2025-11-20 at 19 01 42"
src="https://github.com/user-attachments/assets/b07e44a4-9e37-45e3-9712-6ab19b1af758"
/>


## How it works?

1. The source code can't access the searchTerm from the build time;
thus, this page uses the default
<img width="1899" height="656" alt="Screenshot 2025-11-20 at 18 42 43"
src="https://github.com/user-attachments/assets/697d1b4a-e5cb-4325-a5a1-3ba5d429b7b3"
/>

2. The final code (runtime code after hydration, you can see the element
tab in the devtools), can access the dynamic search term and uses it.
<img width="1570" height="1049" alt="Screenshot 2025-11-20 at 18 42 05"
src="https://github.com/user-attachments/assets/04e0a613-950f-4416-9200-dcc239326b41"
/>

## How to test it?

You can run `pnpm build && pnpm serve` and view the source code
(right-click> Source Code). Additionally, you can view the final code
using the Element tab in the DevTools.
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.

2 participants