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

SEO meta tags are being duplicated when using dynamic data #12

Open
nir2002 opened this issue Apr 29, 2023 · 1 comment
Open

SEO meta tags are being duplicated when using dynamic data #12

nir2002 opened this issue Apr 29, 2023 · 1 comment

Comments

@nir2002
Copy link

nir2002 commented Apr 29, 2023

I built https://otterize.com/ using MDX files for page configuration, seo data, blog posts, etc.
The meta function for each page is using the loader data (coming from MDX) and set the title and meta tags using it.
a few days ago I installed remix-island solution and since then the meta tags are being duplicated, leaving the first title visible (the first page) unless refreshing

I compared my remix-island solution to 3 more project I have with Remix, all work perfect, the difference is that this is the only project I'm using the loader data for the meta functions (using the data parameter)

Any idea?
Its also worth to mention that this is not happening on local development, it only do on production.
Also, I found a bug very similar in this GitHub issue:
remix-run/remix#1028

Thank you 🙏

@Xiphe
Copy link
Owner

Xiphe commented May 3, 2023

Hm... this should not happen indeed.

Unfortunately I'm not really able to reproduce the issue, you explicitly mention mdx files, do you suspect it has something to do with those?

It would help me a ton if you could provide help on how to reproduce this.

Xiphe added a commit that referenced this issue May 3, 2023
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

No branches or pull requests

2 participants