dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

Some javascripts are getting invoked with context is not / #146

Closed sharadr closed 12 years ago

sharadr commented 12 years ago

In grails-app/views/layouts/main.gsp

This should reference the context.

orubel commented 12 years ago

I don't understand. Is their a JS in particular you are having issues with? The JS should be reading from web-app/root always unless it is read from plugin dir in which case it needs to be handled by 'resources'. In which case it should be brought into JS dir and point the resource to that dir.

Is that what you mean?

sharadr commented 12 years ago
<script type="text/javascript" src="/js/superfish.js"></script>

these should have the app context (or be accessed as resources). If deployed under tomcat with a different context (/yana2), error 404 is thrown for these 2 js

orubel commented 12 years ago

Yeah definitely call via resources.