Quant simple sitemap UX issues.

Created on 21 September 2023, about 1 year ago
Updated 1 March 2024, 9 months ago

Problem/Motivation

When testing πŸ› Quant sitemap needs sitemap.xsl to show in browser Fixed and πŸ› Quant sitemap option shows up when simple_sitemap isn't installed Fixed , I noticed that there were a couple issues with the /index/sitemap.xml sitemap.

Steps to reproduce

  1. Install quant, quant_api and quant_sitemap modules
  2. Update Quant API settings and sync content
  3. Go to: /admin/config/quant/seed
  4. You'll see an error message:
    quant_sitemap requires simple_sitemap or xmlsitemap
    
  5. Install simple_sitemap module
  6. Go to: /admin/config/quant/seed
  7. Select Sitemaps and Trigger the batchcheckboxes
  8. Click Save and Queue button
  9. Note the errors: Non-200 response for /sitemap.xml: 404 and Non-200 response for /index/sitemap.xml: 404
  10. This is because even though the module is enabled the sitemaps are not
  11. Go to: /admin/config/search/simplesitemap
  12. Note Default is "pending" and Sitemap index is "disabled"
  13. Click Rebuild queue & generate button
  14. Now there will be a default sitemap so that should no longer show a 404 when seeding
  15. Click Edit link for Sitemap Index
  16. Select Enabled checkbox and Save button
  17. Click Rebuild queue & generate button
  18. Both sitemaps will be published now
  19. Seed again like above and there should be no 404 errors
  20. Check the pages exists on the Drupal site: /sitemap.xml and /index/sitemap.xml
  21. Check the pages exists on the Quant static site: /sitemap.xml and /index/sitemap.xml
  22. Note that the /sitemap.xml page looks fine on both
  23. Note that the /index/sitemap.xml looks okay in Drupal but not on the Quant site (/sitemap_generator/default/sitemap.xsl was synced but not /sitemap_generator/index/sitemap.xsl

Proposed resolution

  1. For the 404 issue, it would be good if only the published sitemaps were handled by Quant (though it could log a warning if there are disabled or pending sitemaps)
  2. For the visual issue, it looks like a xsl file will need to be synced for each sitemap

Remaining tasks

  • Determine resolution
  • Update code
  • Review and test
  • Commit :)

User interface changes

The user won't see 404 errors on the page when syncing sitemaps (though they may exist in the logs). And all sitemaps will render so they can be read 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