-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle default root and catch-all parameters with deep link system #11363
Comments
Here's a dup at ionic-app-scripts for the first part about empty segments. |
Hello, thanks for opening an issue with us, we will look into this. |
@PatrickMcD Here is how I do it currently. I navigate my whole app through a nav-utility.
// this combines the data the segment has with any data that is not a segment parameter Here are the pages I have that map @IonicPage({ |
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. Thank you for using Ionic! |
Ionic version: (check one with "x")
[ ] 1.x
[ ] 2.x
[x] 3.x
I'm submitting a ... (check one with "x")
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Related code:
The new deep link system doesn't handle default root pages nor catch-all parameters while the previous system did.
I'd like to be able to have a page with an empty segment that acts as a default root/home page:
This would mean I wouldn't have to add
rootPage: any = HomePage;
toapp.component.ts
.Secondly, I'd like to have a segment that acts as a fallback if another segment isn't found:
As the param name above suggests, this is how one might display user pages based on a username (or a 404 page if a username is not found or invalid).
I was able to do this with the previous system doing something like this:
The text was updated successfully, but these errors were encountered: