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

Allow to have empty page titles #5549

Merged
merged 1 commit into from
Dec 30, 2022
Merged

Conversation

javiereguiluz
Copy link
Collaborator

Fixes #5545.

The proposed behavior (null === use the default title; (empty string) === don't show any title) fits well with the behavior of the rest of features of this bundle.

As @Lustmored said, the only issue is that you'll see a new "missing translation" for the empty string:

missing-translation

I think someone could send a PR to Symfony to "fix" this and to simply output an empty string when "translating" an empty string.

@javiereguiluz javiereguiluz added this to the 4.x milestone Dec 27, 2022
@kiler129
Copy link
Contributor

@javiereguiluz I think you're right with the empty string translation in Symfony, as this makes a logical sense. Thank you for the fix!

@javiereguiluz javiereguiluz merged commit e8210bc into EasyCorp:4.x Dec 30, 2022
@javiereguiluz javiereguiluz deleted the fix_5545 branch December 30, 2022 19:34
@javiereguiluz
Copy link
Collaborator Author

By the way, the underlying translation issue with empty strings in Symfony has been fixed (symfony/symfony#48833) and it will be available in the next patch releases.

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.

[RFC] Allow empty page titles
2 participants