Page URLs randomly redirects to the home page

0
Experts,                 I have defined page URL's for couple of pages in my mendix app. In the first page, I have a panel where a CAD model is displayed and when the users select any specific component, it captures the selected component and passes it onto the parent window. In the second page, all we have is the full screen mode of the same panel that displays the CAD model. So, users can switch between the first and second pages and the page URLs get updated in the address bar of the browser with the latest selected component id being appended to the page URL.          What we noticed is, for a couple of times when we switch from one page to the other, things work fine. But, repeating the switch from one page to the other, randomly takes me to the home page. It throws a pop up as shown below :     I am running my app as anonymous user. All access is available for both pages.  Not sure why the link is broken after switching the pages for a couple of times. Anyone ran into the above issue, may please shed some light on what can be done to get past this issue.
asked
2 answers
1

Hey Kalyan,

 

Since you are using page url and that too with parameters, you need to make sure id passed within the url needs to be valid always.

 

Now in particular whenever you receive this error, you can refer to console immediately and there it will tell you in detail about the error or logs if app is deployed on cloud.

 

Also what I understand is if you randomly switch pages, I believe if you are doing this very quickly then it might be possible that the page components are not loaded fully and in the meantime you performed another action, and since that previous action was running and some context object is not found hence it throwed an error.

 

Overall, there can be multiple factors associated to this, it depends on how you have modelled the objects for the page, how the page itself is designed (Does it uses Nested data containers, does it have tab containers).....

 

I hope this answer helps.

 

Thanks & Regards,

Naman

 

answered
0

Hi Kalyan,

 

Please find similar communication regarding same maybe it's useful give you some idea,

https://community.mendix.com/link/space/databases/questions/129290

https://community.mendix.com/link/space/microflows/questions/118146

https://community.mendix.com/link/space/user-experience/questions/110833

 

Hope it helps!

Thanks & Regards,

Manikandan K

 

answered