ionic-team / ionic-team/ionic-framework

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

Abierto
#27,005 1 comentario 2 reacciones 0 asignados Ver en GitHub
package: angular type: bug
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

### 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_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.