Problem/Motivation

The symptom: white empty page.

Steps to reproduce

Install latest Tome and Simple Sitemap.
Generate the site.
The /sitemap.xml displays empty page.

Cause

This is caused by having the following line in the simple_sitemap:

<?xml-stylesheet type="text/xsl" href="/sitemap_generator/default/sitemap.xsl"?>

And this link is not being followed.

Proposed resolution

Follow the link in the xml.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork tome-3389768

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ragnarkurm created an issue. See original summary.

samuel.mortenson’s picture

Status: Active » Closed (won't fix)

I saw this too - but the page isn't actually blank (you can verify this with curl), it's just that your browser/web server can't recognize the content type of the file. Since Tome doesn't control how files are served, this issue isn't fixable by Tome AFAIK.

samuel.mortenson’s picture

Status: Closed (won't fix) » Needs work

Actually I think I just realized what you were saying, sorry about that.

tormi’s picture

Any ideas how to resolve this?

enchufe’s picture

Added to the event subscribers a specific one for the sitemap.

enchufe’s picture

As an alternative, I have created the submodule Tome Add Paths.

marcoliver made their first commit to this issue’s fork.

marcoliver’s picture

@enchufe Even without your patch I am seeing the sitemap.xml file being created in the static folder.

I partially agree with @samuel.mortenson insofar that the "empty" display of the XML seems to be a server issue, not necessarily Tome-related.

But the module is nevertheless lacking a way to discover and save the XSL stylesheet for the sitemap.

I have created a first attempt at a solution for this in MR 24, kindly asking for review / feedback.