Commit 79161576 authored by gbyte.co's avatar gbyte.co

Issue #3044178 by Krzysztof Domański: Fix docu in simple_sitemap.api.php

parent bd32bd47
......@@ -23,7 +23,7 @@ function hook_simple_sitemap_links_alter(array &$links, $sitemap_variant) {
// Remove German URL for a certain path in the hreflang sitemap.
foreach ($links as $key => $link) {
if ($link['path'] === 'node/1') {
if ($link['meta']['path'] === 'node/1') {
// Remove 'loc' URL if it points to a german site.
if ($link['langcode'] === 'de') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment