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