Linking in Ionic PWA


I have created a very basic webapp using ionic 3. Navigation from home->list->detail and back is fine.
I use IonicPage to create the url segments:


Now one problem: When a user directly enters the detail page (using a bookmark as example) the page is
displayed correctly, but the navigation stack is of course empty.
navCtrl.canGoBack() returns false.

How can I insert the Root page (home) and list page below the current page so that the back button shows and works as expected? push() insert() setRoot() all open the page on top of the current one. And the Deeplinker component seems to user ionic/native which I cannot user in the webpage.
Any ideas? Seems to be a common issue, but I can’t find a usable solution.


1 Like