path for static resources via @Javascript and @Stylesheet

I really like the @Javascript and @Stylesheet annotations, but I don’t get why the calculated paths for non-absolute urls are the way they are?

Wouldn’t it be better to, one way or another, simply map paths to your web container paths? I don’t want to put my static resources in my classes directory (assuming that’s what “APP/PUBLISHED” is mapped to by Vaadin), just in the usual static resources directories. How can I do that using the annotations?

Given that you might want an actual relative option, how about only prepending if the url doesn’t start with a ‘/’? If it does then it’s just served as is by the browser