My web application includes a JavaScript file with the following line of code:
var arrowimages = { down: ['downarrowclass', 'images/AppNavDownArrow.gif', 23], right: ['rightarrowclass', 'images/AppNavRightArrow.gif'] }
While at the root of my web application, the image URLs work correctly. However, when navigating to a subfolder within the application, the same subfolder is added to the image URL causing them not to load.
How can I adjust the code so that it correctly points to the image path even when in a subfolder of the application?