Recycle use of a local variable and remove what seems to be 2 extraneous URL objects.
Merge pull request #2889 from Adenilson/cleanupURL01

Recycle use of URL local variable