# Perspective EmbeddedView failes to load view from URL parameter

**URL:** <https://forum.inductiveautomation.com/t/perspective-embeddedview-failes-to-load-view-from-url-parameter/79135>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 14, 2023, 7:10am UTC](https://forum.inductiveautomation.com/t/perspective-embeddedview-failes-to-load-view-from-url-parameter/79135 "2023-09-14T07:10:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [September 14, 2023, 7:10am UTC](https://forum.inductiveautomation.com/t/perspective-embeddedview-failes-to-load-view-from-url-parameter/79135/1 "2023-09-14T07:10:13Z")

</div>

Hi all, I cannot manage to have the following project run correctly: one of my views (_MeterView_) has an `EmbeddedView` whose `path` property is dinamically bound to a parameter coming from the URL (e.g. `/meters/temperature` should load my _MeterView_, loading the _Temperature_ view in the `EmbeddedView` component - the URL in the _Page Configuration_ is defined as `/meters/:sensor` and `sensor` is a `param` of the _MeterView_). I use a `MenuTree` to load my views, hard-coding the URLs in the `target` property. The behavior is as follows:

- click an item in the MenuTree: the _MeterView_ loads, showing the _View not Found_ scaring message
- if I press _F5_ in the browser and force a reload of the URL which was set by the MenuTree item, the _MeterView_ loads as expected with the correct sensor view.

I tried to add `time.sleep(..)` here and there, thinking that as soon as the main view is shown, URL parameters are not parsed/ready yet, but with no success.  
Any idea?

Thanks in advance

Ignition version: 8.1.31

---

<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:** [September 14, 2023, 12:09pm UTC](https://forum.inductiveautomation.com/t/perspective-embeddedview-failes-to-load-view-from-url-parameter/79135/2 "2023-09-14T12:09:13Z")

</div>

Try to change to loading mode of the embedded view to `after parent` or whatever it's called.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [September 14, 2023, 1:15pm UTC](https://forum.inductiveautomation.com/t/perspective-embeddedview-failes-to-load-view-from-url-parameter/79135/3 "2023-09-14T13:15:43Z")

</div>

> [@pascal.fragnoud](#):
>
> loading mode of the embedded view to `after`

Thanks @pascal.fragnoud . I'm quite sure I did it already, but next week I'll be by the customer and I'll give it a try.  
Regards

---

<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:** [September 14, 2023, 10:14pm UTC](https://forum.inductiveautomation.com/t/perspective-embeddedview-failes-to-load-view-from-url-parameter/79135/4 "2023-09-14T22:14:31Z")

</div>

Could you show the binding in place on the view path of the Embedded View?

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [September 20, 2023, 8:44pm UTC](https://forum.inductiveautomation.com/t/perspective-embeddedview-failes-to-load-view-from-url-parameter/79135/5 "2023-09-20T20:44:11Z")

</div>

Hi, I finally found the solution: the hard coded target URL is a concatenation of text fields coming from a database query, which I execute to build the MenuTree dinamically. I had to `trim()` those text fields to get the `target` property running - even if those text fields have no spaces around them.
