Really having a tough time in giving a proper url