I added a custom script to my "Style Library" folder under a site collection. The site collection URL is
http://servername/HR. So to reference the script inside my master page I wrote the following:
Where I am manually referencing the
/hr/ inside the
src, so can I make this more dynamic and get the site collection URL dynamically, so if I move the site collection to another URL the script will still get referenced?