Consider current request security (SSL or not) when building links. All items on an SSL-encrypted page will be requested using SSL.
Changed paths: