Fixed bug with path in JS links