fixed bug with missing / at the beginning of url