Skip to content

Commit

Permalink
keeping original file name and processed file name
Browse files Browse the repository at this point in the history
  • Loading branch information
temi committed Dec 5, 2024
1 parent 5bda228 commit 749c81d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions grails-app/taglib/au/org/ala/biocollect/TemplateTagLib.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ class TemplateTagLib {
List resolvedFiles = originalFiles?.collect {
asset.assetPath(src: it)
}

// adding /asset to path will help finding files when running from jar files.
// Running app from jar file returns path with the updated name.
// We need the updated and original name to be cached by PWA.
originalFiles = originalFiles?.collect { "/assets/" + it }
List mixedFiles = resolvedFiles + originalFiles

out << (mixedFiles as JSON).toString()
Expand Down

0 comments on commit 749c81d

Please sign in to comment.