404 on content download via OT2 Viewer

When I get the publication data from OT2 CSS, I get the URLs inside it without the "/css" path appended to them. Because of this, I am getting 404s when the OT2 Viewer loads. When I manually add the "/css" endpoint to the URLs, it works properly.

Is this a known issue with the OT2 Viewer?

Please check the diff below to understand more clearly:

The one on the left is a snippet of the JSON response returned by the CSS service. This JSON throws 404 when used in the OT2 Viewer.

The one on the right was modified manually by me. I added the "/css" endpoint to the URLs (you can see other instances too, in the document map on the extreme left). After this change, I am able to view the document using the OT2 Viewer.

Best Answer

Answers