# Tag Redirection

Tags can be redirected. $Tag1.Path gets the current redirection path. The tag redirection path can be changed at runtime using scripts by setting the .Path property, as shown below.

- $Tag1.Path = "Tag2"

The above line of code redirects Tag1 to be pointed at Tag2. Any change to the value of Tag1 will be changed on Tag2 and vice-versa. When a tag has a .Path configuration, the tag will no longer hold a value itself, but is instead used as a shortcut.

Note: When redirecting tags, ensure that the tags both have the same Data Type, otherwise an error may occur.

For example, a tag would be created that will be used for redirection, e.g. $TagRedirection.FlexiTag. As shown below, .the $TagRedirection.FlexiTag.Path = $TagRedirection.TagB. This configures $TagRedirection.FlexiTag to no longer hold any value itself; instead, it is a shortcut to whatever value stored by $TagRedirection.TagB.

Note: To view the above example, load the FunctionSample from the Sample Projects tab, and open the TagRedirection Page (Pages > Concepts > TagRedirection).