Update webconsole.rb

fix how we check the webconsole url in the middleware