Client Route multiple catch-all pages possible? #1662
-
Hello, I haven't been able to get Vike to Client Route from one catch-all page to another (different URLs but both point to the "*" catch-all glob route). I've tried different types of This is for an app that has many thousands of URLs/pages in a database for many hosted sites. In the Express catch-all server route, URLs for the requested site are looked up and then validated in the onBeforeRender hook to determine whether to proceed or forward to an error page. For instance, site A has: Site B has: and so on (all of above point to the "*" route). Loading the initial requested URL/page (SSR) works, and if I click to a defined page/route then the client-side routing works, but if I click from one catch-all link to another catch-all, the URL in the browser changes, but the page does not transition to the new page and fails to load the data unique to that URL/page ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Have you tried using Route Functions with precedence numbers? |
Beta Was this translation helpful? Give feedback.
New recommended
useData()
implementation: e2e123e. Both simpler and more robust.