# Aliased Historical Tag Browser not effect?

**URL:** <https://forum.inductiveautomation.com/t/aliased-historical-tag-browser-not-effect/107460>\
**Category:** Ignition Exchange\
**Tags:** perspective\
**Created:** [June 17, 2025, 8:20am UTC](https://forum.inductiveautomation.com/t/aliased-historical-tag-browser-not-effect/107460 "2025-06-17T08:20:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taohongyu88](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@taohongyu88](https://forum.inductiveautomation.com/u/taohongyu88)\
**Post date:** [June 17, 2025, 8:20am UTC](https://forum.inductiveautomation.com/t/aliased-historical-tag-browser-not-effect/107460/1 "2025-06-17T08:20:25Z")

</div>

[Ignition Exchange | Inductive Automation](https://inductiveautomation.com/exchange/2555/installation)

1、As docs I set the browsePath "histprov:postgres:/drv:ignition-27c1c261c5d2:default:/tag:test"

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/1/d12ed2fbf302c63b8f1fa303b6f41dfacc59f877.png)

2、As docs I add Custom Properties "HistoricalAlias" in Tag.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/0/201a349340cc23e9c2b6d2cdff70335250889df1.png)

3、Then change bingds "tags =browseTags('[default]TEST')"

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/9/f9cfbcb5509f80aadb0b94e60b32706615028c5d.png)

4、I can see charts in PowerChart.  
histprov:postgres:/drv:ignition-27c1c261c5d2:default:/tag:test/tag2

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/f/0faba3b551fd2f3633aff626de258990a7199297.png)

5、But in this project ,not effect?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/a/2a73b16955a98e5eadeee355dd60119639a5163f.png)

Is there other settings?

---

<div class="post-metadata">

**Author:** ![taohongyu88](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@taohongyu88](https://forum.inductiveautomation.com/u/taohongyu88)\
**Post date:** [July 3, 2025, 9:50am UTC](https://forum.inductiveautomation.com/t/aliased-historical-tag-browser-not-effect/107460/2 "2025-07-03T09:50:13Z")

</div>

In Gateway -Config-Tags-Realtime Tag Providers ，must add HistoricalAliasProvider

`2. Add a tag provider to your gateway name "HistoricalAliasProvider"`

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/e/1e45e19be37962edbdd3fc9a34d1a23204f05271.png)

3、\* Open the tag editor and add a custom property to the tag called"HistoricalAlias"

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/3/d39f8ab775a5cbd9536510d4578808f25b8c3a6a.png)

In Version: **8.1.24 (b2023011208)**

```python
import re # 导入正则表达式模块
path = 'histprov:postgres:/drv:ignition-win10-2022wcacw:default:/tag:'
results = system.tag.browseHistoricalTags(path).getResults()
tagsAddedCount = 0
print results
for result in results:
    # if result is a folder, run the function again for that folder
    if result.hasChildren():
        print("hasChildren")
        print('----------------path----------------') # histprov:postgres:/drv:ignition-win10-2022wcacw:default:/tag:/pwgz

        print(result.path)
        print('----------------newpath----------------') # histprov:postgres:/drv:ignition-win10-2022wcacw:default:/tag:pwgz 
# Action! Path is different ! Newpath history is Right!

        print(re.sub(':/tag:/', ':/tag:', str(result.path)))

```

Change this , it will right.
