Skip to content

Fix: Prevent duplicate <title> tags by conditionally rendering manual title in layout #183

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

Merged

Conversation

RanaMoizHaider
Copy link
Contributor

The <title> tag is now only rendered if the SEO meta title is the default or empty, preventing duplicate title.

The <title> tag is now only rendered if the SEO meta title is the default or empty, preventing duplicate or unnecessary titles when a custom SEO title is set. This improves SEO handling and avoids conflicts with dynamic title management.
@simonhamp simonhamp merged commit e9f2f9c into NativePHP:main Jul 14, 2025
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