URLs in sitemap missing "www"

Hi folks,
I used the sitemap solution for multi-language site from here: Sitemap generator for multilanguage website
Thanks for that!
But the URLs are that are generated are missing the “www”. I am redirecting all traffic to www.* via htaccess file.

Current URLs in sitemap:
https://mydomain.com

Expected:
https://www.mydomain.com

How could I solve this?
Thanks in advance! – Martin

Have you tried to set the URL in your config.php file?

c::set('url', 'your_url');

That works now, was not aware, this config property exists! Thanks :smiley: