We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi everybody, If we try to create links using alternate links feature as reported into official documentation, the xml file generated is broken.
Tryed to create a sitemap.rb with just the code reported into official documentation: config/sitemap.rb
SitemapGenerator::Sitemap.default_host = "http://www.example.com" SitemapGenerator::Sitemap.create do add('/index.html', :alternate => { :href => 'http://www.example.de/index.html', :lang => 'de', :nofollow => true }) end
Run the command: rake sitemap:refresh and got a sitemap.xml file with this output:
That of course is not an XML format.
Instead having a simple sitemap.rb file like this:
SitemapGenerator::Sitemap.default_host = "http://www.example.com" SitemapGenerator::Sitemap.create do add '/index.html', priority: 1, changefreq: 'daily' end
Will produce a correct XML file like this:
Tested with these versions:
What is going on? Thanks, Diego.
The text was updated successfully, but these errors were encountered:
I've run the same test with the same versions and it works as it should.
Are you viewing the xml file in a browser? Only the contents of the XML elements will be shown, and not the element tags themselves.
Sorry, something went wrong.
No branches or pull requests
Hi everybody,
If we try to create links using alternate links feature as reported into official documentation, the xml file generated is broken.
Tryed to create a sitemap.rb with just the code reported into official documentation:
config/sitemap.rb
Run the command: rake sitemap:refresh and got a sitemap.xml file with this output:
That of course is not an XML format.
Instead having a simple sitemap.rb file like this:
Will produce a correct XML file like this:
Tested with these versions:
What is going on?
Thanks,
Diego.
The text was updated successfully, but these errors were encountered: