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

Replace deprecated title helper to page-title #716

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

czikarito
Copy link
Contributor

@czikarito czikarito commented Jan 12, 2021

Resolves #711

Notes

According to https://github.com/ember-cli/ember-page-title#upgrading-notes-for-5x-to-6x I had to remove usage of HeadLayout from application.hbs

@@ -1,5 +1,4 @@
<HeadLayout />
Copy link
Member

@ijlee2 ijlee2 Jan 12, 2021

Choose a reason for hiding this comment

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

It looks like deleting <HeadLayout> resulted in a breaking change for us. Previously, in https://deploy-preview-714--ember-website.netlify.app/, we could see 3 <meta> tags near the bottom of <head>:

Screen Shot 2021-01-12 at 6 38 59 PM

In https://deploy-preview-716--ember-website.netlify.app/, I'm unable to find these tags.

Now that ember-page-title no longer depends on ember-cli-head, I think we'll need to find another way to dynamically create these meta tags.

References:

Copy link
Member

@ijlee2 ijlee2 Jan 12, 2021

Choose a reason for hiding this comment

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

Copy link
Member

@ijlee2 ijlee2 left a comment

Choose a reason for hiding this comment

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

@czikarito Thanks for investigating and working on making the pull request.

I think we'll need to find a solution for continuing to create the 3 meta tags. Let me block merging this pull request until we can do so.

@czikarito
Copy link
Contributor Author

@ijlee2 good catch. Maybe we can change only {{title}} to {{page-title}} in this PR (skip ember-page-title upgrade) to remove warnings in the console? and do the upgrade in the separate PR (when we'll find a solution)

@ijlee2
Copy link
Member

ijlee2 commented Jan 12, 2021

@ijlee2 good catch. Maybe we can change only {{title}} to {{page-title}} in this PR (skip ember-page-title upgrade) to remove warnings in the console? and do the upgrade in the separate PR (when we'll find a solution)

Yep, I think it'll be okay to just update the helpers. Thanks for the suggestion!

@czikarito czikarito changed the title Upgrade ember-page-title Replace deprecated title helper to page-title Jan 12, 2021
@czikarito
Copy link
Contributor Author

@ijlee2 I updated PR to include only helpers change

Copy link
Member

@ijlee2 ijlee2 left a comment

Choose a reason for hiding this comment

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

CI logs look great, thank you again! ✨

@ijlee2 ijlee2 merged commit 47054fe into ember-learn:master Jan 12, 2021
@bertdeblock
Copy link
Contributor

👋 @ijlee2, the titleDidUpdate hook PR has been released, so I think that clears the path for updating ember-page-title inside this project.

@raido
Copy link

raido commented Jan 15, 2021

Example integration with ember-cli-head - ember-cli/ember-page-title#201 (comment)

@ijlee2
Copy link
Member

ijlee2 commented Jan 15, 2021

@bertdeblock @raido Thank you for working on a solution quickly! I'd be happy to try it out right away.

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.

Title helper from ember-page-title has been deprecated
4 participants