Unified functionality for hrefable elements