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.
When visiting the xmlsitemap settings page, the directory prefix shown for the xmlsitemap_path setting is incorrect when the default file scheme is set to private rather than public.
Comments
Comment #1
pillarsdotnet CreditAttribution: pillarsdotnet commentedThe attached patch ensures that the proper directory prefix is shown, regardless of the default file scheme.
Comment #2
pillarsdotnet CreditAttribution: pillarsdotnet commentedReally, this time.
Comment #3
pillarsdotnet CreditAttribution: pillarsdotnet commentedShould have used
file_default_scheme()
.Comment #4
Dave ReidComment #5
Dave ReidI actually decided to base this off using file_build_uri() without realpath involved as that's kind of what core does already.
http://drupalcode.org/project/xmlsitemap.git/commit/6f4b6f0