Giter Site home page Giter Site logo

Comments (4)

Karmalakas avatar Karmalakas commented on May 23, 2024

IIRC, canonical link tag should be set on the page itself if you have multiple URLs for that page, and not in the sitemap. Sitemap itself does not support canonical URLs

from grav-plugin-sitemap.

ChristianaHoJo avatar ChristianaHoJo commented on May 23, 2024

Hi @Karmalakas,
the canonical tags for pages are set on the pages themselves. Google has found a sitemap link with params

/sitemap.xml?213ddf9382cb3d7ffb633e793782271d=txxauhotljhbrj

Can't find out where that URL came from. So I wonder If I can set an canonical marker to the xml file but didn't found a good solution.

from grav-plugin-sitemap.

Karmalakas avatar Karmalakas commented on May 23, 2024

This doesn't look like something generated by GRAV. Check your setup on Google account if you maybe have such link defined somewhere there. Otherwise my best guess would be, that Google found this link somewhere in the wild.

I guess you could add a permanent redirect in .htaccess directly

from grav-plugin-sitemap.

ChristianaHoJo avatar ChristianaHoJo commented on May 23, 2024

Yes, an redirect will be a short fix. I already thought that you can't store a canonical attribute in xml.files as a general solution.
Thank you for your answer.

from grav-plugin-sitemap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.