I am trying to generate Sitemap for my site using Simple XML Sitemap module. I have checked the Documentation for Extending the module features. Since I am newbie to Drupal 8, I am in confusion how to get this achieved. tried some hooks but failed it may be my lack of understanding regarding drupal8 module development. Can anyone help me to get this done. What are the namespaces I should add to my custom module.
Currently my URLs are generated like
www.mysite.com/country/india but I want it to be like
www.mysite.com/country/india/ since I use trailing slash with URLs.
I've used htaccess to add trailing slash to URLs with 301 redirect.