Routing Issue with Modal

I have a landing Page, lets call it landing.php (/landing/user/)
Works great.
I have a link to a route: /landing/user/about (which loads _about.php).
On this page is a modal that autoloads and pops up - works great.
On the modal close, the page navigates via routes back to /landing/user
Works no problem.
Problem is when i click the link to navigate via routes back to /landing/user/about the modal no longer pops up…

I’ve tried targeting the modal using the app structure from a link on the main page, which does not work.

Any thoughts on how to retrigger the modal on that route?

I’ve tried just about every combination of dynamic event ect… i just cant get the modal to open up once i go back to the route for a second time.

Is it possible to target components on routing pages from the base page, all my research and tinkering says no…

Any help would be greatly appreciated!

1 Like

I thought i’d post the solution in case anybody else ever struggles, SPA’s while difficult to master can be very rewarding and boost the user experience.

The solution was to bind the ‘Show’ Dyanmic event on the route iteself - i’d swear i tried about a million different things except this!

1 Like