navigation: return the location to navigate to

More reusable this way.
navigation: search for 'a' and 'link' elements