Support clicking on button/input vs. anchor.

Use URIjs to create absolute url for location.replace() calls