ionic-team / ionic-team/ionic-framework

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

未关闭
#27,005 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
package: angular type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。