Skip to content

ref(solidstart): Use core's getTraceMetaTags over own implementation#13274

Merged
andreiborza merged 1 commit intodevelopfrom
ab/solidstart-core-metatags
Aug 8, 2024
Merged

ref(solidstart): Use core's getTraceMetaTags over own implementation#13274
andreiborza merged 1 commit intodevelopfrom
ab/solidstart-core-metatags

Conversation

@andreiborza
Copy link
Copy Markdown
Member

@andreiborza andreiborza commented Aug 8, 2024

ref: #13273


const content = `<head>\n${metaTags.join('\n')}\n`;
const content = `<head>\n${metaTags}\n`;
return html.replace('<head>', content);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just wondering what happens if a user has any attributes set on the <head>tag like lang="de" or something like this? 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yea then no meta-tags, but I have never seen attributes placed on head ever before. Are there any such cases? (also our other sdks will have this problem too).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it's technically possible although very uncommon

@andreiborza andreiborza merged commit 6cbc416 into develop Aug 8, 2024
@andreiborza andreiborza deleted the ab/solidstart-core-metatags branch August 8, 2024 08:39
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