Replacing deprecated $BaseHref in templates

$BaseHref has been deprecated. I have replaced this in the templates with $AbsoluteBaseURL.