I have site which is non root site i.e. url of site is: http:///sites/xxx
I want to place a content editor web part and refer a link to javascript file which is stored in the Style Library.
My code in Content Editor Web Part :
<script language="javascript" src="/sites/Style%20Library/js/Scripts.js" type="text/javascript"></script>
If I pass this it refers to file http://<Web_Application>/sites/Style%20Library/js/Scripts.js
When I place : <script language="javascript" src="/Style%20Library/js/Scripts.js" type="text/javascript"></script>
it refers to file http://<Web_Application>/Style%20Library/js/Scripts.js
What should I do to give the correct path to the JavaScript file?