From 08ce6b5256988eba82751a357553f15e0d495d48 Mon Sep 17 00:00:00 2001 From: eikek Date: Fri, 13 Aug 2021 00:58:13 +0200 Subject: [PATCH] Fix path to viewerjs for pdf view --- .../scala/docspell/restserver/routes/AttachmentRoutes.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/restserver/src/main/scala/docspell/restserver/routes/AttachmentRoutes.scala b/modules/restserver/src/main/scala/docspell/restserver/routes/AttachmentRoutes.scala index 2d115380..d1130228 100644 --- a/modules/restserver/src/main/scala/docspell/restserver/routes/AttachmentRoutes.scala +++ b/modules/restserver/src/main/scala/docspell/restserver/routes/AttachmentRoutes.scala @@ -162,7 +162,7 @@ object AttachmentRoutes { // this route exists to provide a stable url // it redirects currently to viewerjs val attachUrl = s"/api/v1/sec/attachment/${id.id}" - val path = s"/app/assets${Webjars.viewerjs}/ViewerJS/index.html#$attachUrl" + val path = s"/app/assets${Webjars.viewerjs}/index.html#$attachUrl" SeeOther(Location(Uri(path = Uri.Path.unsafeFromString(path)))) case GET -> Root / Ident(id) / "meta" =>