Cache baseHref when $state is injected