Open
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
- Nightly
Current Behavior
<IonTabButton
key={item.tab}
tab={item.tab}
href='/a?search=1'
className={styles.tabButton}
>
<NavIcon selected={!!selected} icon={item} />
<IonLabel>{item.label}</IonLabel>
</IonTabButton>
'search will not be in location's href
Expected Behavior
'search' will be in location's href
Steps to Reproduce
<IonTabs>
<IonRouterOutlet id="tabs">
<Route exact={exact} path='/a' render={() => <UComponent />} />
</IonRouterOutlet>
<IonTabButton
key={item.tab}
tab={item.tab}
href='/a?search=1'
className={styles.tabButton}
>
<NavIcon selected={!!selected} icon={item} />
<IonLabel>{item.label}</IonLabel>
</IonTabButton>
</IonTabBar>
</IonTabs>
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.19.1
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v16.14.2
npm : 8.5.0
OS : macOS Big Sur