Thread:Project:Support desk/How do I add a JavaScript file to my template?

Hi guys,

I am adding a .js file to the bottom of my template file using this code:

The problem with this is: Nearly all browsers do not load the file correctly. Instead of requesting this file, they request path-to-the-current-page/wiki/skins/vector/javascript/linksupport.js.

I know that I could add .htaccess rewrites or use the full URL of the .js file, but: Is one of that really the solution? Are are that only workarounds?

What is the right way to include the JavaScript in the bottom of the templae? How should I fix this issue?