Simplify getHref method