bugFixes #0002616 & #0001046

This pull request will fix both bugs quoted in the title. 
#0002616 : Fixing the double slashes in URLs causing unwanted behaviours.
#0001046 : Fixing the problem where the user was not notified whenever a connection error occurs.