When I enable 'Use Secure URLs in Frontend' it messes up the urls of secured pages. For example, this is the url I get for the checkout page
http://www.domain.com/https://www.domain.com/checkout/onepage/
It seems as though it's adding an extra 'http://www.domain.com/' before the secure domain. Does anyone know why this is happening?