Skip to content

Conversation

@george-veras
Copy link
Contributor

@george-veras george-veras commented May 11, 2019

Fixes #1964.

@reactjs-bot
Copy link

reactjs-bot commented May 11, 2019

Deploy preview for reactjs ready!

Built with commit 6a47d60

https://deploy-preview-1987--reactjs.netlify.com

@george-veras
Copy link
Contributor Author

Hi @gaearon and @sophiebits ! I'm willing to invest time on this wonderful community but I need some help to get involved, so if I got something wrong on this PR please provide me some feedback and I will be more than happy to work on it and learn more from the project.

@sophiebits
Copy link
Member

Can you please:

  • Rename the property ogUrl to canonicalUrl
  • Check each page that uses the TitleAndMetaTags component and have it pass in a URL if possible
  • Change the canonical URL for the homepage from https://reactjs.org/index.html to just https://reactjs.org/

@george-veras
Copy link
Contributor Author

Count on me @sophiebits, thanks for that by the way :)

<Header>Languages</Header>
<TitleAndMetaTags title="React - Languages" />
<TitleAndMetaTags
canonicalUrl={`${urlRoot}/languages`}
Copy link
Member

Choose a reason for hiding this comment

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

Can you add the trailing slashes to this and /versions/? To match the URL you get redirected to if you visit /languages.

Otherwise I think this looks good.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! No problem at all, I see your point ;)

@george-veras
Copy link
Contributor Author

Done! This issue was perfect for me to get to know better this project.
I really appreciate your help and feedback @sophiebits, thanks for your time :)
Please let me know if there is anything else I can do, can't wait to continue working on this project!

@sophiebits
Copy link
Member

This looks great. Thank you so much!

@sophiebits sophiebits merged commit dd79941 into reactjs:master May 16, 2019
@kambleaa007
Copy link

kambleaa007 commented May 16, 2019

Hi @gaearon and @sophiebits ! I'm willing to invest time on this wonderful community but I need some help to get involved, so if I got something wrong on this PR please provide me some feedback and I will be more than happy to work on it and learn more from the project.

I wanted too, :)
But, i didnt know how to deal with it....

BetterZxx pushed a commit to BetterZxx/react.dev that referenced this pull request Mar 21, 2023
* Add canonical url to the head section (reactjs#1987)

* Update conferences.md (reactjs#2002)

This PR updates the page to be more current.

* Update hooks-effect.md (reactjs#2005)

* docs(cn): fix conflicts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add <link rel="canonical"> tag to all pages

6 participants