Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Add canonical link element to pages #13

Open
irisli opened this issue Oct 2, 2015 · 1 comment
Open

Add canonical link element to pages #13

irisli opened this issue Oct 2, 2015 · 1 comment

Comments

@irisli
Copy link
Contributor

irisli commented Oct 2, 2015

https://en.wikipedia.org/wiki/Canonical_link_element

Some pages have multiple ways of getting to. For example, root pages can be accessed via /index.html and /. The canonical link element resolves this "duplication" of content.

For example, https://www.stellar.org/developers/learn/index.html and https://www.stellar.org/developers/learn/index.html would have the following html tag:

<link rel="canonical" href="https://www.stellar.org/developers/learn/" />
@irisli
Copy link
Contributor Author

irisli commented Oct 2, 2015

Though perhaps the better solution is to have index.html redirect to / and also make sure we don't link to index.html especially since they are technically the same link.

https://www.mattcutts.com/blog/rel-canonical-html-head/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant