ionic-team / ionic-team/ionic-framework

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

Đang mở
#27,005 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
package: angular type: bug
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.