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

offline-plugin-app-shell-fallback/ URL indexed by Google #4562

Closed
MaralS opened this issue Mar 16, 2018 · 3 comments
Closed

offline-plugin-app-shell-fallback/ URL indexed by Google #4562

MaralS opened this issue Mar 16, 2018 · 3 comments

Comments

@MaralS
Copy link

MaralS commented Mar 16, 2018

Hi,

I'm using the Google Search Console in order to see the state of the indexation of URLs and I don't understant why https://www.urlofthewebsite.com/`offline-plugin-app-shell-fallback/` is indexed.
Indeed this kind of URLs leads to a 404 page and impacts on SEO.

I noticed that page is on the sitemap.xml file, how can I fix this problem ??

Thanks a lot

Maral

@KyleAMathews
Copy link
Contributor

Hmmm... it shouldn't be. We exclude it here

exclude: [`/dev-404-page`, `/404`, `/offline-plugin-app-shell-fallback`],

Perhaps there's a bug with our exclusion logic? Would love a PR fixing this if that's the case!

@ciffelia
Copy link

Excluding ['/dev-404-page/', '/404/', '/404.html', '/offline-plugin-app-shell-fallback/'] worked for me. (trailing / and /404.html required)

@MaralS
Copy link
Author

MaralS commented Mar 18, 2018

@KyleAMathews I recently updated all the packages including the sitemap plugin.

I use :

gatsby-plugin-sitemap@^1.2.11:
  version "1.2.18"
  resolved "https://registry.yarnpkg.com/gatsby-plugin-sitemap/-/gatsby-plugin-sitemap-1.2.18.tgz#6e5f0e64a95fd79fbdf6183f4c34587e6b42d07e"
  dependencies:
    babel-runtime "^6.26.0"
    sitemap "^1.12.0"

Am I using the latest version ?
I excluded these pages through the gatsby config file and when I pushed these modifications it worked

I think I will resubmit the sitemap.xml file to Google for a new indexation of the pages of the site.

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

No branches or pull requests

3 participants