# Retargeting in Perspective

**URL:** <https://forum.inductiveautomation.com/t/retargeting-in-perspective/41570>\
**Category:** Ignition\
**Created:** [December 16, 2020, 4:31pm UTC](https://forum.inductiveautomation.com/t/retargeting-in-perspective/41570 "2020-12-16T16:31:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AE2S\_Sanden](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@AE2S\_Sanden](https://forum.inductiveautomation.com/u/AE2S_Sanden)\
**Post date:** [December 16, 2020, 4:31pm UTC](https://forum.inductiveautomation.com/t/retargeting-in-perspective/41570/1 "2020-12-16T16:31:22Z")

</div>

Is there a way to retarget to other projects in Perspective like there is in Vision? I’ve tried the system.perspective.navigate command, but that doesn’t work too well using the Perpective app. If you try it in the app, it launches the new project in a browser instead of within the app.

---

<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:** [December 16, 2020, 6:23pm UTC](https://forum.inductiveautomation.com/t/retargeting-in-perspective/41570/2 "2020-12-16T18:23:09Z")

</div>

In speaking with our head of mobile development, it sounds ike using `system.perspective.navigate(url=self.session.props.gateway.address + '/data/perspective/client/projectName/path/page')` should keep you within the application (it worked for him). If you’re targeting a DIFFERENT Gateway, then no - there is no way to do that currently. Could you supply the code you’re using to perform the navigation?

Edit: PGriffith keeping me honest.

---

<div class="post-metadata">

**Author:** ![AE2S\_Sanden](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@AE2S\_Sanden](https://forum.inductiveautomation.com/u/AE2S_Sanden)\
**Post date:** [December 17, 2020, 5:32pm UTC](https://forum.inductiveautomation.com/t/retargeting-in-perspective/41570/3 "2020-12-17T17:32:43Z")

</div>

The projects are on the same gateway. Project name is “ **Minto** ” and the homepage is called “ **Home** ”.

The gateway address session prop is **[http://localhost:8088](http://localhost:8088)**.

Here is the script that I am using. It still tries to launch the new project in a browser.  
**system.perspective.navigate(url=self.session.props.gateway.address + ‘/Minto/Home’)**

---

<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:** [December 17, 2020, 5:39pm UTC](https://forum.inductiveautomation.com/t/retargeting-in-perspective/41570/4 "2020-12-17T17:39:18Z")

</div>

The curly braces are a syntax error, and definitely wouldn’t work.  
I think the URL is still malformed even without them, though - I suspect you need something like:  
`system.perspective.navigate(url="{address}/data/perspective/client/{project}/{path}".format(address=self.session.props.gateway.address, project="Minto", path="Home")`

---

<div class="post-metadata">

**Author:** ![AE2S\_Sanden](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@AE2S\_Sanden](https://forum.inductiveautomation.com/u/AE2S_Sanden)\
**Post date:** [December 17, 2020, 6:09pm UTC](https://forum.inductiveautomation.com/t/retargeting-in-perspective/41570/5 "2020-12-17T18:09:09Z")

</div>

Thanks for the help and especially the quick responses! Here is what I ended up with that works.

str = “{}/data/perspective/client/{}/{}”.format(self.session.props.gateway.address, “Minto”, “Home”)  
system.perspective.navigate(url=str)
