ionic-team / ionic-team/ionic-framework

bug: angular, root tab pages do not account for route parameters

Aperta
#27,005 1 commento 2 reazioni 0 assegnatari Vedi su GitHub
package: angular type: bug
Lingua principale
TypeScript
Stelle
52.7k
Fork
13.3k
Merge medio
1g 15h
PR unite (30g)
51

Descrizione

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v6.x

### Current Behavior

Using the basic tabs example from the docs and added an :id parameter to the route:
![grafik](https://user-images.githubusercontent.com/1548163/227152045-3a463373-b465-40b7-b072-1b28200eb7b3.png)

Now accessing the id on the radio page fails:
![grafik](https://user-images.githubusercontent.com/1548163/227152220-d6c8187b-d575-4e31-8c33-261460bca9a3.png)

### Expected Behavior

Url parameters should be passed also when using ionic-tabs

### Steps to Reproduce

I took the ionic-tabs example from the docs and added the :id
[StackBlitz example](https://stackblitz.com/edit/angular-ayvwgb-cddxbe)

### Code Reproduction URL

https://stackblitz.com/edit/angular-ayvwgb-cddxbe

### Ionic Info

Ionic:

Ionic CLI : 6.20.9 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.6.2
@angular-devkit/build-angular : 15.2.4
@angular-devkit/schematics : 15.2.4
@angular/cli : 15.2.4
@ionic/angular-toolkit : 8.0.0

Capacitor:

Capacitor CLI : 4.7.1
@capacitor/android : 4.7.1
@capacitor/core : 4.7.1
@capacitor/ios : 4.7.1

Utility:

cordova-res : not installed globally
native-run : 1.7.2

System:

NodeJS : v18.15.0 (/usr/local/bin/node)
npm : 9.5.0
OS : macOS Unknown

### Additional Information

_No response_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.