tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

View renditions - link to document doesn't work when running node server #854

Closed dgrumieaux closed 8 years ago

dgrumieaux commented 9 years ago

To replicate:

Note that the URL is updated to an invalid address, but nothing else happens. What should happen is that the rendition type is downloaded.

mikeblum commented 9 years ago

at line 74 of viewrenditions.js here's how the download url is built up:

"link" : new URI().path(app.serviceUrlRoot + "/content/content")
                                                  .addSearch("id", self.documentId)
                                                  .addSearch("download", true)
                                                  .addSearch("contentType[]", _.findWhere(self.extensions, {"mimeType" : type}).fileExtension)
ZachGerth commented 8 years ago

Fixed with Revision# 14015. CR - mikeblum