Custom Element that redirects to a new URL when an attribute is changed