Set document location rather than relying upon standard anchor behavior.