[BUGFIX#8] Broken url generated in HTTPS context