2

我在crafter 3中使用viewerjs库

问题是库使用相对 url 以便像这样工作:

<a href="http://example.org/ViewerJS/#../path/to/filename.ext">

问题是当我在crafter中做同样的事情时,我得到了这个错误:

引起:org.craftercms.core.exception.StoreException:无法找到内容:../data/repos/sites/viewerv2/sandbox/static-assets/viewerJS 不是文件

有没有办法解决这个问题?

4

1 回答 1

2

固定的:

/viewerJS/index.html#../path/to/the/file.ext

而不是只写 #.. 我们还需要添加 index.html 以及文件的路径

于 2017-12-27T15:59:52.460 回答