I am having some trouble with a path in my wicket project. There is a sounds folder located within the Web Pages directory.
Within my JavaScript code, I am using the following path to play sounds:
audioElement.setAttribute('src', 'sounds/startMusic.mp3');
However, the sound is not playing as expected.
I referenced an example from this jsfiddle and adjusted the path from absolute to relative (which worked when using the absolute path).
Where could I be making a mistake? Upon searching online, it seems like everyone uses the same path.
Thank you for your help.