It is usual when you are working with Play use this kind of code to refer public assets.
To achieve this we just have to use the built in controller named Assets. Let’s see the implementation:
Now, you just have to import this class to all templates. Change your build.sbt and add this line.
templatesImport ++= Seq("helpers.AssetsHelper._")