2 added 115 characters in body
source | link

You can use hook_simple_sitemap_links_alter() to change the links generated before the sitemap is saved.

function example_simple_sitemap_links_alter(&$links) {
  global $base_url;
  foreach ($links as $key => $link) {
    if ($links[$key]['url'] != $base_url . '/') { // Excluding base url
      $links[$key]['url'] = $link['url'] . '/'; // Here Trailing slash will be added
    }
  }
}

Before using the hook:

enter image description here

After using the hook:

enter image description hereenter image description here

You can use hook_simple_sitemap_links_alter() to change the links generated before the sitemap is saved.

function example_simple_sitemap_links_alter(&$links) {
  foreach ($links as $key => $link) {
    $links[$key]['url'] = $link['url'] . '/'; // Here Trailing slash will be added
  }
}

Before using the hook:

enter image description here

After using the hook:

enter image description here

You can use hook_simple_sitemap_links_alter() to change the links generated before the sitemap is saved.

function example_simple_sitemap_links_alter(&$links) {
  global $base_url;
  foreach ($links as $key => $link) {
    if ($links[$key]['url'] != $base_url . '/') { // Excluding base url
      $links[$key]['url'] = $link['url'] . '/'; // Here Trailing slash will be added
    }
  }
}

Before using the hook:

enter image description here

After using the hook:

enter image description here

1
source | link

You can use hook_simple_sitemap_links_alter() to change the links generated before the sitemap is saved.

function example_simple_sitemap_links_alter(&$links) {
  foreach ($links as $key => $link) {
    $links[$key]['url'] = $link['url'] . '/'; // Here Trailing slash will be added
  }
}

Before using the hook:

enter image description here

After using the hook:

enter image description here