# Perspective page configuration loading wrong page

**URL:** <https://forum.inductiveautomation.com/t/perspective-page-configuration-loading-wrong-page/40714>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [November 17, 2020, 12:51am UTC](https://forum.inductiveautomation.com/t/perspective-page-configuration-loading-wrong-page/40714 "2020-11-17T00:51:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShaneCMM](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@ShaneCMM](https://forum.inductiveautomation.com/u/ShaneCMM)\
**Post date:** [November 17, 2020, 12:51am UTC](https://forum.inductiveautomation.com/t/perspective-page-configuration-loading-wrong-page/40714/1 "2020-11-17T00:51:50Z")

</div>

I am using URL path parameters in my page configuration and it works as expected for a while but I am finding when I add an additional page config, other URLs start displaying the wrong page, and when I delete it, they start working again, even though their config was not changed at all. Is there any limitations with URL parameters which could cause this? Eg. A maximum URL length? A maximum number of parameters allowed in a URL? Any other cases where it will not follow the defined primary view setting?

For example:

It works with config:  
/static1/:level\_1 -\> level1\_page  
/static1/:level\_1/static2/:level\_2/:level\_3 -\> level3\_page  
/static1/:level\_1/static2/:level\_2 -\> level2\_page

But when I add:  
/static1/:level\_1/static2/:level\_2/:level\_3/:level\_4 -\> level4\_page  
all URLs which should match level2\_page or level3\_page show level4\_page.

Note I left the static sections of the URL, and the order they are defined in here in case that matters somehow. (I know with some react routing libraries the order in which routes are defined matters…)

---

<div class="post-metadata">

**Author:** ![ShaneCMM](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@ShaneCMM](https://forum.inductiveautomation.com/u/ShaneCMM)\
**Post date:** [November 17, 2020, 1:08am UTC](https://forum.inductiveautomation.com/t/perspective-page-configuration-loading-wrong-page/40714/2 "2020-11-17T01:08:27Z")

</div>

> [@ShaneCMM](#):
>
> I think I've got it... at least I found a way to make it work.
> 
> It works when I define the URLs with the most specific one first.  
> Eg. level4\_page, then level3\_page, then level2\_page etc.
> 
> This is annoying as the designer doesn't allow you to reorder them, you have to delete and recreate them.
> 
> Is this behavior in the docs anywhere? I missed it if it is...

I take this back, it still doesn't work. Maybe it worked the first time after I edited but now it doesn't???

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 17, 2020, 1:12am UTC](https://forum.inductiveautomation.com/t/perspective-page-configuration-loading-wrong-page/40714/3 "2020-11-17T01:12:17Z")

</div>

I suspect the underlying library isn’t set up to have different levels of parameters supported under a common static prefix.

---

<div class="post-metadata">

**Author:** ![ShaneCMM](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@ShaneCMM](https://forum.inductiveautomation.com/u/ShaneCMM)\
**Post date:** [November 25, 2020, 2:46am UTC](https://forum.inductiveautomation.com/t/perspective-page-configuration-loading-wrong-page/40714/4 "2020-11-25T02:46:48Z")

</div>

I have found a way around this and it is a better URL design anyway.

If you use a static segment between each parameter segment, it works fine. For example:  
/static1/:level\_1/static2/:level\_2/static3/:level\_3/static4/:level\_4 -\> level4\_page  
/static1/:level\_1/static2/:level\_2/static3/:level\_3 -\> level3\_page  
/static1/:level\_1/static2/:level\_2 -\> level2\_page  
/static1/:level\_1 -\> level1\_page

Or a more readable example:  
/categories/food/subcategories/vegetables/items/carrots where categories, subcategories, and items are static segments in the URL, and food, vegetables, and carrots are values of parameters.

In v8.1.0, a URL without the static sections between parameters such as /food/vegetables/carrots would not work.
