# \[Feature-11590\] System.perspective.navigate() Lacks Option To Open New Tab

**URL:** <https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 27, 2020, 11:54am UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636 "2020-01-27T11:54:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdellova](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@pdellova](https://forum.inductiveautomation.com/u/pdellova)\
**Post date:** [January 27, 2020, 11:54am UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/1 "2020-01-27T11:54:19Z")

</div>

Hi,

Is there a way to use the function system.perspective.navigate() to open a view in a new tab?  
documentation does not show the parameter to do this  
we try to search it in the JSON code of a view with a button event/onClick/Navigation

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

and obtain code below

> Blockquote  
> {  
> "events": {  
> "dom": {  
> "onClick": {  
> "config": {  
> "newTab": true,  
> "url": "http://..."  
> },  
> "scope": "C",  
> "type": "nav"  
> }  
> }  
> }

We can see the parameter newTab in the code, so we try

system.perspective.navigate(url='http://...', newTab = true) and system.perspective.navigate(url='http://...', newTab = "true")

but the view open in the same tab  
.  
here is the code that we obtain in the JSON then

> Blockquote  
> {  
> "events": {  
> "dom": {  
> "onClick": {  
> "config": {  
> "script": "\t\n\tsystem.perspective.navigate(url\u003d\u0027http://...\u0027, newTab \u003d "true")"  
> },  
> "scope": "G",  
> "type": "script"  
> }  
> }  
> }

we can also see that the scope is not the same.

Does the system.perspective.navigate() function allow to open a view in a new tab? Or Is there another way to do this?

Thanks

Pierre

---

<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 27, 2020, 3:34pm UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/2 "2020-01-27T15:34:49Z")

</div>

The `system.perspective.navigate()` function does not allow for opening another tab at this time. There is an open feature request already logged to provide this functionality, but no indication of when that ticket is expected to be acted upon.

I believe you are able to do this with the Link component, if that is an option. This would require that the navigation be moved out of an Action and that the Link component be configured to use a target of `_blank`.

---

<div class="post-metadata">

**Author:** ![pdellova](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@pdellova](https://forum.inductiveautomation.com/u/pdellova)\
**Post date:** [January 27, 2020, 4:18pm UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/3 "2020-01-27T16:18:56Z")

</div>

Thanks for your prompt,

we had actually assumed that link component would be the solution for now

Thank again.

Pierre

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [August 20, 2020, 7:26pm UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/4 "2020-08-20T19:26:09Z")

</div>

> [@cmallonee](#):
>
> but no indication of when that ticket is expected to be acted upon.

Any updates on this? I need to trigger an "open in new tab" off messageHandler and unfortunately realizing its not really possible yet

---

<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:** [August 20, 2020, 9:00pm UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/5 "2020-08-20T21:00:49Z")

</div>

That issue has had no movement. I’ll update the issue to show another request.

---

<div class="post-metadata">

**Author:** ![dustin.cooper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dustin.cooper/32/29963_2.png) [@dustin.cooper](https://forum.inductiveautomation.com/u/dustin.cooper)\
**Post date:** [August 21, 2020, 4:43pm UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/6 "2020-08-21T16:43:40Z")

</div>

I’ve been able to workaround by using a view custom prop that is either bound or updated by a script event. I’ve also added a script action ahead of a navigation action - using the script to update the custom url prop and then binding the url property in the navigation event with the “open in new tab” box checked.

This approach covers every scenario with the exception of logic where you would want to abort the navigation action based on conditions in the script action.

It would be a big improvement if the newTab keyword were added to the system.perspective.navigate() function.

---

<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:** [August 21, 2020, 5:18pm UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/7 "2020-08-21T17:18:26Z")

</div>

The existing feature requests recommends the introduction of a couple of optional kwargs which would be used to determine whether the navigation should occur in the same tab (default if no optional kwargs are supplied), in a new tab, or in a new window.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [August 23, 2020, 1:46pm UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/8 "2020-08-23T13:46:21Z")

</div>

Unfortunately mine has to come from a messageHandler, so I did this by having an embedded view that doesn’t display, and setting the embeddedViewPath and URL parameter from within my messageHandler. That way it triggers the onStartup event for the embeddedView and I can run the action with “open in new tab” selected.

I played a lot with how to use a script to trigger an “action” on another component, and was struggling to find one, most of them seem to be geared towards the user doing something.

I am looking forward to the updated system.perspective.navigate to say the least! lol

---

<div class="post-metadata">

**Author:** ![jcaudle](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jcaudle](https://forum.inductiveautomation.com/u/jcaudle)\
**Post date:** [April 26, 2023, 3:02pm UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/9 "2023-04-26T15:02:28Z")

</div>

Any movement on adding this functionality to the function?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 26, 2023, 3:14pm UTC](https://forum.inductiveautomation.com/t/feature-11590-system-perspective-navigate-lacks-option-to-open-new-tab/31636/10 "2023-04-26T15:14:55Z")

</div>

Opening in a new tab was added in 8.1.5.  
[https://docs.inductiveautomation.com/display/DOC81/system.perspective.navigate](https://docs.inductiveautomation.com/display/DOC81/system.perspective.navigate)

Opening in a new window was found to be too inconsistent across our supported browser matrix, so not offered as an option at this time.
