Using toURL function instead of fullPath