optimized computeURL()

Why so big indentation?