# Perspective Horizontal Menu Bar

**URL:** <https://forum.inductiveautomation.com/t/perspective-horizontal-menu-bar/81077>\
**Category:** Ignition\
**Tags:** ignition80, scripting, perspective, ignition81\
**Created:** [October 27, 2023, 6:31am UTC](https://forum.inductiveautomation.com/t/perspective-horizontal-menu-bar/81077 "2023-10-27T06:31:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav.Shitole](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gaurav.shitole/32/72050_2.png) [@Gaurav.Shitole](https://forum.inductiveautomation.com/u/Gaurav.Shitole)\
**Post date:** [October 27, 2023, 6:31am UTC](https://forum.inductiveautomation.com/t/perspective-horizontal-menu-bar/81077/1 "2023-10-27T06:31:21Z")

</div>

Hello,

So I am trying to navigate to different project from my HorizontalMenu component, but it opens in New Tab. So the target URLs are like below:

`GWAddress + /data/perspective/client/ + ProjectName1 + "/page1/show1"`  
`GWAddress + /data/perspective/client/ + ProjectName1 + "/page1/show2"`  
`GWAddress + /data/perspective/client/ + ProjectName1 + "/page2/show1"`  
`GWAddress + /data/perspective/client/ + ProjectName1 + "/page2/show1"`

So above navigation works fine, in the same tab and without page reload because its within same project.  
Now when I try to navigate to another project, the URL would be like:

`GWAddress + /data/perspective/client/ + ProjectName2 + "/page1/show1"`  
`GWAddress + /data/perspective/client/ + ProjectName2 + "/page1/show2"`

When I switch between projects, it not only reloads the page but also Opens page In the New Tab. Reloading is fine due to project switch but I do not want that to open in newTab.  
To avoid opening in the newTab I did navigation with scripting using

```auto
system.perspective.navigate(url)

```

But now this reloads every page even if its within the same project.

Please suggest how could I achieve the expected result. Thanks in advance

Ignition Version: 8.1.32  
Windows

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 27, 2023, 7:09am UTC](https://forum.inductiveautomation.com/t/perspective-horizontal-menu-bar/81077/2 "2023-10-27T07:09:12Z")

</div>

Try using page navigation instead of url navigation for the pages on the same project. This should solve the reloading issue with `system.perspective.navigate`.

You should probably use pages instead of urls for the horizontal menu as well though.

---

<div class="post-metadata">

**Author:** ![Gaurav.Shitole](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gaurav.shitole/32/72050_2.png) [@Gaurav.Shitole](https://forum.inductiveautomation.com/u/Gaurav.Shitole)\
**Post date:** [October 27, 2023, 7:22am UTC](https://forum.inductiveautomation.com/t/perspective-horizontal-menu-bar/81077/3 "2023-10-27T07:22:27Z")

</div>

If I use Pages instead of URLs, it won't work when switching between projects.  
Also within same project, if I use `system.perspective.navigate(page=pagePath)` it does update page URL but it does not show that view on page. It only does after refresh.

Is there something like I could use Menu bar as is (wo script) and not open new project in new tab? This would resolve everything

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 27, 2023, 7:46am UTC](https://forum.inductiveautomation.com/t/perspective-horizontal-menu-bar/81077/4 "2023-10-27T07:46:11Z")

</div>

> [@Gaurav.Shitole](#):
>
> it won't work when switching between projects

I did say "for the pages on the same project".

> [@Gaurav.Shitole](#):
>
> it does update page URL but it does not show that view on page. It only does after refresh.

That's unexpected. It shouldn't do that.

> [@Gaurav.Shitole](#):
>
> Is there something like I could use Menu bar as is (wo script) and not open new project in new tab? This would resolve everything

Maybe, but I don't have time to dig any deeper.  
It may have something to do with browser configuration, in which case you might be out of luck.
