fixed links to external resources when using SSL.