Added logic for project type conversion and fixed URL building.