AMEC-1994 moved the docURL decllartion outside of the if block