Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Generated href url for nodes use "en" for all languages in sitemap.xml.
Example:
<url>
<loc>http://domain.com/en/products/endoscope-washers/espal-b</loc>
<xhtml:link rel="alternate" hreflang="en" href="http://domain.com/en/products/endoscope-washers/espal-b"/>
<xhtml:link rel="alternate" hreflang="ja" href="http://domain.com/en/products/endoscope-washers/espal-b"/>
<priority>0</priority>
<lastmod>2016-06-04T09:22:01+09:00</lastmod>
</url>
Should be:
<loc>http://domain.com/products/endoscope-washers/espal-b</loc>
<xhtml:link rel="alternate" hreflang="en" href="http://domain.com/en/products/endoscope-washers/espal-b"/>
<xhtml:link rel="alternate" hreflang="ja" href="http://domain.com/products/endoscope-washers/espal-b"/>
<priority>0</priority>
<lastmod>2016-06-04T09:22:01+09:00</lastmod>
</url>
Anyone else had this?
Using:
Drupal 8.1.3
Default Language: Japanese
Secondary Language: English
Comments
Comment #2
nickolas.wilson CreditAttribution: nickolas.wilson commentedComment #4
gbyte CreditAttribution: gbyte as a volunteer and commentedThanks, regression should be fixed in dev. Please test and feel free to reopen this issue if necessary.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedI have still the problem with the wrong urls. The main difference and advantage of simple sitemap against sitemapxml is not working.
Theses are my generated urls in german and english.
In both cases is the english url used.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #7
gbyte CreditAttribution: gbyte as a volunteer and commentedThe issue should be fixed in the dev version of the module. Have you tried it? Please do not change the module version number in this issue, I can't fix a published stable. Instead test the dev version and close this issue if everything is working.
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedI tried the latest dev but this break my site. I switched back to the 2.5 and thought the issue is fixed. That was the reason for reopeining the issue.
Comment #9
gbyte CreditAttribution: gbyte as a volunteer and commentedHave you run /update.php right after updating the module to the dev version?
Comment #10
gbyte CreditAttribution: gbyte as a volunteer and commentedRunning update.php will update the database schema and clear your caches which will prepare your site for the new module version. I fixed the bug in dev, hence closing this ticket again. Please reopen if the issue reappears in dev.
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedWorks indeed in dev. Thx for your support.
Comment #12
paintingguy CreditAttribution: paintingguy commentedWhen enabling this:
Enable file (file) support
Sitemap settings for this entity type can be set below and overridden on its entity pages.
I get this error:
An error has occurred. This may result in an incomplete XML sitemap.
Please continue to the error page
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=353&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText: {
(PS, sorry for posting this in the wrong area).
Comment #13
gbyte CreditAttribution: gbyte as a volunteer and commentedI know, there is a todo in the code. It seems to be a core bug filed here: https://www.drupal.org/node/2402533
Feel free to open an issue here as a reference for others.