Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Ionic navigation query param bug #29961

Open
3 tasks done
rishoej opened this issue Oct 23, 2024 · 2 comments
Open
3 tasks done

bug: Ionic navigation query param bug #29961

rishoej opened this issue Oct 23, 2024 · 2 comments
Labels

Comments

@rishoej
Copy link

rishoej commented Oct 23, 2024

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

Example.mov

For some reason the parent page inherit the nested route query params if you navigate the tabs in a certain way.

Expected Behavior

The ionic navigation should not apply query params from nested pages to the parent page.

Steps to Reproduce

Example.mov

I've made a basic ionic demo project with tabs and only added the nested page "foo" and a button to push the new route.

  1. Clone this repo https://github.com/rishoej/ionic-navigation-query-param-bug/tree/main and run npm i and npm run dev
  2. Click the button "Go to nested page"
  3. The url is "/tabs/tab1/foo?foo=bar" (which is intended)
  4. Click Tab1 in the navigation, so you return to the parent route "/tabs/tab1"
  5. Click Tab2 in the navigation
  6. Click Tab1 again and it will now somehow inherit the previous query param "/tabs/tab1?foo=bar"

Code Reproduction URL

https://github.com/rishoej/ionic-navigation-query-param-bug/tree/main

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/Users/trqj/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 8.3.3

Capacitor:

Capacitor CLI : 6.1.2
@capacitor/android : not installed
@capacitor/core : 6.1.2
@capacitor/ios : not installed

Utility:

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

System:

NodeJS : v21.6.2 (/Users/trqj/homebrew/Cellar/node/21.6.2/bin/node)
npm : 10.2.4
OS : macOS Unknown

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Oct 23, 2024
@nilaygit-10721
Copy link

can you assign me this issue?

@rishoej
Copy link
Author

rishoej commented Oct 30, 2024

can you assign me this issue?

Do you need me to do something? I can't assign it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants