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

Link rel meta tag in site html refers to http://localhost:4000/ #348

Open
tvleavitt opened this issue May 16, 2020 · 4 comments
Open

Link rel meta tag in site html refers to http://localhost:4000/ #348

tvleavitt opened this issue May 16, 2020 · 4 comments

Comments

@tvleavitt
Copy link
Contributor

The following meta tag is embedded in the site content:

Based on the information below, I believe this is invalid:

The Canonical meta tag is actually a link element. By adding it you define which URL is the original URL of a page. If you have a page with both a mobile and a desktop version, Google sees these as duplicate versions of the same page.

If the same information is available on multiple URLs, then there is duplicate content. The best solution is to prevent duplicate content from occurring. But in other cases, the canonical tag is the best way to resolve duplicate content.

https://www.metatags.org/all-meta-tags-overview/the-unknown-metatags/canonical-tag/

@DanVanAtta
Copy link
Member

Any clue where that value of 'localhost:4000' is coming from @tvleavitt ? @RoiEXLab ?

@RoiEXLab
Copy link
Member

@DanVanAtta well the tag is defined here:

<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

Because Jekyll listens on localhost:4000 by default that's the value that is inserted there

@DanVanAtta
Copy link
Member

DanVanAtta commented Mar 31, 2022 via email

@RoiEXLab
Copy link
Member

Well it's meta information, so yes.
I assume it was originally inserted by some template or in order to improve SEO, not sure if it helps with the latter

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

No branches or pull requests

3 participants