Quant sitemap needs sitemap.xsl to show in browser

Created on 6 February 2023, almost 2 years ago
Updated 8 February 2023, almost 2 years ago

Problem/Motivation

If you seed the sitemap.xml file with the fix for πŸ› Unable to seed sitemaps Fixed , it works but it doesn't render in the browser. If you wget the file, it looks like the following which has the /sitemap.xsl as a relative path. But, sitemap.xsl isn't seeded.

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://quantdrupal7rc4.ddev.site/</loc><changefreq>daily</changefreq><priority>1.0</priority></url>
<url><loc>https://quantdrupal7rc4.ddev.site/node-1-page-another</loc><lastmod>2023-02-05T21:07Z</lastmod><changefreq>daily</changefreq></url>
<url><loc>https://quantdrupal7rc4.ddev.site/node-2-article</loc><lastmod>2023-02-04T04:44Z</lastmod><changefreq>daily</changefreq></url>
<url><loc>https://quantdrupal7rc4.ddev.site/node-3-article</loc><lastmod>2023-02-05T08:48Z</lastmod><changefreq>daily</changefreq></url>
<url><loc>https://quantdrupal7rc4.ddev.site/node-4-page2</loc><lastmod>2023-02-05T08:44Z</lastmod><changefreq>daily</changefreq></url>
<url><loc>https://quantdrupal7rc4.ddev.site/content/nunc</loc><lastmod>2023-02-05T08:43Z</lastmod><changefreq>daily</changefreq></url>
<url><loc>https://quantdrupal7rc4.ddev.site/content/sadfdsf</loc><lastmod>2023-02-05T08:51Z</lastmod><changefreq>daily</changefreq></url>
<url><loc>https://quantdrupal7rc4.ddev.site/taxonomy/term/1</loc></url>
<url><loc>https://quantdrupal7rc4.ddev.site/taxonomy/term/2</loc></url>
<url><loc>https://quantdrupal7rc4.ddev.site/taxonomy/term/3</loc></url>
<url><loc>https://quantdrupal7rc4.ddev.site/taxonomy/term/4</loc></url>
<url><loc>https://quantdrupal7rc4.ddev.site/taxonomy/term/5</loc></url>
</urlset>

Steps to reproduce

  1. Install Drupal 7
  2. Use branch or patch from πŸ› Unable to seed sitemaps Fixed if not yet committed
  3. Enable and configure quant, quant_api, quant_sitemap and xmlsitemap modules
  4. Use devel_generate to generate content
  5. Generate the sitemap.xml file and check it's working
  6. Go to Seed tab (/admin/config/services/quant/seed)
  7. Check Export sitemaps and Trigger the batch
  8. Click Save configuration button
  9. Look at Quant Dashboard and see sitemap.xml listed
  10. Click View in dashboard
  11. Result: The page will be blank
  12. Expected result: See the sitemap with styling for web browser

Proposed resolution

Seed sitemap.xsl and adjust the sitemap to point to correct location as necessary.

Remaining tasks

  1. Debug
  2. Update code
  3. Review and test
  4. Commit :)

User interface changes

Sitemap will be visible in the browser.

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024