# Menu Tree opens URL on new tab

**URL:** <https://forum.inductiveautomation.com/t/menu-tree-opens-url-on-new-tab/59531>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 13, 2022, 9:02am UTC](https://forum.inductiveautomation.com/t/menu-tree-opens-url-on-new-tab/59531 "2022-05-13T09:02:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dean\_Walsh](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dean\_Walsh](https://forum.inductiveautomation.com/u/Dean_Walsh)\
**Post date:** [May 13, 2022, 9:02am UTC](https://forum.inductiveautomation.com/t/menu-tree-opens-url-on-new-tab/59531/1 "2022-05-13T09:02:50Z")

</div>

Hello, I am using a menu tree to switch between projects on the same gateway by setting the target url but the problem is it opens on a new tab, is there a way to have it just redirect the same tab, horizontal menu does this feature but i would like to use menu tree if at all possible.

---

<div class="post-metadata">

**Author:** ![abcruz](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@abcruz](https://forum.inductiveautomation.com/u/abcruz)\
**Post date:** [January 17, 2024, 8:54am UTC](https://forum.inductiveautomation.com/t/menu-tree-opens-url-on-new-tab/59531/2 "2024-01-17T08:54:26Z")

</div>

Any update on this one whether you found a way to do this?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 17, 2024, 5:19pm UTC](https://forum.inductiveautomation.com/t/menu-tree-opens-url-on-new-tab/59531/3 "2024-01-17T17:19:26Z")

</div>

@abcruz Is your issue being encountered on mobile, or is it instead in a browser setting?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 18, 2024, 9:53pm UTC](https://forum.inductiveautomation.com/t/menu-tree-opens-url-on-new-tab/59531/4 "2024-01-18T21:53:14Z")

</div>

It looks like this is an expectation for any target which is not a mounted path.

From our automated testing suite:

> Clicking an item with a full URL (non-mounted path) for a target should always open that URL in a new tab.

I can't explain why that rule was put in place, only that it's an expected behavior for the component.

---

<div class="post-metadata">

**Author:** ![abcruz](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@abcruz](https://forum.inductiveautomation.com/u/abcruz)\
**Post date:** [January 18, 2024, 11:33pm UTC](https://forum.inductiveautomation.com/t/menu-tree-opens-url-on-new-tab/59531/5 "2024-01-18T23:33:18Z")

</div>

I'm encountering this issue in a browser setting. Is there any future plans for this rule to be changed?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 19, 2024, 12:12am UTC](https://forum.inductiveautomation.com/t/menu-tree-opens-url-on-new-tab/59531/6 "2024-01-19T00:12:00Z")

</div>

Not at this time, because it is an expected behavior. We have to assume that users have designed projects around this behavior. In theory, we could add a new prop to each item, something like `open_external_urls_in_new_tab` and default it to `true`. This would then retain the old behavior while still allowing for fine-tuning of the behavior. You can always open a feature request along these lines at [https://ideas.inductiveautomation.com/](https://ideas.inductiveautomation.com/)

---

<div class="post-metadata">

**Author:** ![AnirudhVelamore](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@AnirudhVelamore](https://forum.inductiveautomation.com/u/AnirudhVelamore)\
**Post date:** [August 18, 2025, 10:40pm UTC](https://forum.inductiveautomation.com/t/menu-tree-opens-url-on-new-tab/59531/7 "2025-08-18T22:40:19Z")

</div>

I’ve added an idea along these lines as @cmallonee suggests.

Here’s the link to the idea: [Perspective Menu Tree Object: Allow opening item URL on the same tab | Voters | Inductive Automation](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/perspective-menu-tree-object-allow-opening-item-url-on-the-same-tab)
