Fixed condition to display resource url (fixes #146)

This should do the job.