Comments (4)
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.
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.
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.
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)
- Missing translations in JSON sitemap HOT 2
- Avoid flex objects from indexing
- Children pages under an unpublished blog will show up in sitemap
- Suggestion: location url -> change domain based on language
- attachments HOT 1
- Default Page is HTML not XML HOT 2
- ParseError syntax error, unexpected 'int' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) HOT 3
- Ignore protected pages does not work HOT 1
- Wrong file name for SitemapEntry.php HOT 11
- Wrong file name for SitemapEntry.php > Grav\Plugin\Sitemap\SitemapEntry HOT 2
- Invalid root element, missing trailing slash HOT 2
- Alternative replacement for ignore:true, using visible or published HOT 1
- Invalid namespace according to google console HOT 2
- All languages on the same map: by default or not? HOT 7
- Related items not grouped in sitemap HOT 5
- Problem with a multilanguage sitemap HOT 1
- Error with multilingual one-page website HOT 3
- Sitemap blanked out problem HOT 10
- Way to provide an override for sitemap's lastmod HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grav-plugin-sitemap.