Moved slash to fix URL

The trailing slash was not working inside the ‘getPath()’ function.