# \[Bug-2419\] Perspective URL Params do not update page on subsequent changes

**URL:** <https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 7, 2021, 1:34am UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461 "2021-05-07T01:34:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnthonyF](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@AnthonyF](https://forum.inductiveautomation.com/u/AnthonyF)\
**Post date:** [May 7, 2021, 1:34am UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/1 "2021-05-07T01:34:38Z")

</div>

Updated our gateway to v8.1.5 the other day and since then passing parameters through a view URL seems to be broken. It was working prior to the update.

Anyone else seeing this issue?

Edit: Further testing indicates that the view loads from the URL correctly on the first load, but if the URL is changed to reflect a new param, this is not loaded.

---

<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:** [May 9, 2021, 2:29am UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/2 "2021-05-09T02:29:57Z")

</div>

We’re aware of this and have an internal ticket to address the issue.

---

<div class="post-metadata">

**Author:** ![AnthonyF](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@AnthonyF](https://forum.inductiveautomation.com/u/AnthonyF)\
**Post date:** [May 9, 2021, 11:48pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/3 "2021-05-09T23:48:40Z")

</div>

Thanks, do you know which release will include a fix at this stage?

---

<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:** [May 10, 2021, 12:37am UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/4 "2021-05-10T00:37:38Z")

</div>

No, there is not ETA at this time.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [May 10, 2021, 5:22pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/5 "2021-05-10T17:22:56Z")

</div>

This issue has been resolved and will be fixed in the 8.1.6 release.

---

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [June 3, 2021, 3:00am UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/6 "2021-06-03T03:00:43Z")

</div>

I thought it was, but now we’re running 8.1.7 Nightly Build and having the same issue.

@Carl.Gould, did it reappear somewhere along the way in 8.1.7??

---

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [June 3, 2021, 9:05pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/7 "2021-06-03T21:05:39Z")

</div>

@Carl.Gould, @cmallonee, will this issue be looked at again when rolling 8.1.6 back?

> [@What happened to version 8.1.6 LTS? It appears to be gone!](http://forum.inductiveautomation.com/t/what-happened-to-version-8-1-6-lts-it-appears-to-be-gone/47418/2):
>
> Serious regression. 8.1.7 is being prepared with only that change rolled back.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 3, 2021, 9:26pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/8 "2021-06-03T21:26:09Z")

</div>

~~Hmm, I don’t see any indication this actually made it into the 8.1.6 release.~~

Nevermind, hadn’t fetched upstream recently enough. Looks like it’s in 8.1.6 after all, and should be in some nightly release, so possibly a regression if anything.

---

<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:** [June 3, 2021, 10:12pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/9 "2021-06-03T22:12:22Z")

</div>

I just performed a quick check of this behavior on the latest nightly and confirmed it is working as expected with a basic scenario.

---

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [June 4, 2021, 2:18pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/10 "2021-06-04T14:18:54Z")

</div>

So, is the new 8.1.7 LTS the same as the 8.1.7 Nightly Build? I see both on the download page. I’m assuming they are, and that the next nightly build will be 8.1.8…??

---

<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:** [June 4, 2021, 2:29pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/11 "2021-06-04T14:29:54Z")

</div>

The “8.1.7 LTS Nightly” appears to be identical to the “8.1.7 LTS Stable” download as of this very second. Sometime today I expect we will update our internal systems to begin producing an 8.1.8 nightly.

---

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [June 16, 2021, 6:15pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/12 "2021-06-16T18:15:00Z")

</div>

> [@cmallonee](#):
>
> it is working as expected with a basic scenario

@cmallonee, the scenario I have is that the parameter being passed is then used in a Named Query to populate a 'Form'. Now, since the 8.1.6 regression, the only way I can make it work is to put

```auto
	import time
	time.sleep(1)

```

before the code (not desirable). If I don't, the resulting dataset from the named query has a getRowCount() of 0.

It seems like the view takes a moment to recognize the parameter that is passed.

Any ideas?

---

<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:** [June 16, 2021, 7:33pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/13 "2021-06-16T19:33:30Z")

</div>

I guess it sort of depends on how this Named Query is being used.  
This form that is being populated: is it populated via binding? Change script? Startup script?

If you’re using a binding, I would expect that binding to re-evaluate when the new value is supplied. If you’re using a change script, then this new value should also result in that code being executed again.  
I could see how a startup script might not have the passed-in param because it might not have resolved yet.

---

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [June 16, 2021, 9:41pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/14 "2021-06-16T21:41:23Z")

</div>

Yes, it’s a startup script.

---

<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:** [June 16, 2021, 10:25pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/15 "2021-06-16T22:25:35Z")

</div>

Unfortunately I don’t think a script at that location will work for what you’re trying to do because the params may not have resolved. If you read the docstring for the PageStartup Event, concentrate on the `page` portion:

```auto
def onPageStartup(page):
	"""
	This event is fired when a new page is opened in a tab or window in a
	browser context.

	Arguments:
		page: A reference to the newly created page. Note that the other page
		      props will NOT return a valid value on page startup. The props that will
		      return a valid value are: 
			pageId (str): Identifier associated with the target page
			path (str): Represents the Page URL of the page. Example: / or /myPage
	"""

```

---

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [June 18, 2021, 1:46pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/16 "2021-06-18T13:46:56Z")

</div>

Ah, ok. That sheds some light on it.

Thanks @cmallonee! I’ll look at doing it a different way then, possibly a change script.

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [May 18, 2022, 10:02am UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/17 "2022-05-18T10:02:59Z")

</div>

Did this bug manage to creep back in?

I’m on 8.1.16 and the behaviour has regressed and is behaving exactly as was described in this post.

Was definitely working a few versions ago

---

<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:** [May 18, 2022, 3:08pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/18 "2022-05-18T15:08:45Z")

</div>

I just checked our automated testing for that area and I do not see any failures. Could you provide some replication steps? Perhaps the automation follows a different route? The automation looks correct to me as it follows these steps to test this area:

1. Use URL navigation to navigate to a page with three params delivered via the URL (`system.perspective.navigate(url="GatewayIP:port/data/perspective/client/ProjectName/page/paramOne/paramTwo/paramThree", pageId=targetPageId)`).
2. Verify params arrived and were consumed as expected by observing three Labels display the three values.
3. Use URL navigation for the same page, but with different param values in the URL (`system.perspective.navigate(url="GatewayIP:port/data/perspective/client/ProjectName/page/paramTwo/paramThree/paramOne", pageId=targetPageId)`).
4. Verify params have been replaced with the new values by observing that the Labels now display the new values.

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [May 18, 2022, 3:25pm UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/19 "2022-05-18T15:25:34Z")

</div>

It might be related to how we’re using the parameter, in a startup script. Maybe it’s an unrelated change where the view doesn’t start up anymore on such a navigation.

I’ll try it in a change script rather and use a label to confirm tomorrow.

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [May 19, 2022, 10:04am UTC](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461/20 "2022-05-19T10:04:22Z")

</div>

Works as you described.

I think the view no longer starts up when it only receives different parameters, hence me thinking it is a bug.

All is good.

[Next page](https://forum.inductiveautomation.com/t/bug-2419-perspective-url-params-do-not-update-page-on-subsequent-changes/46461.md?page=2)
