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: Deep linking is broken when navigating to different tab #30164

Open
3 tasks done
jakubkoje opened this issue Jan 29, 2025 · 0 comments
Open
3 tasks done

bug: Deep linking is broken when navigating to different tab #30164

jakubkoje opened this issue Jan 29, 2025 · 0 comments
Labels

Comments

@jakubkoje
Copy link

jakubkoje commented Jan 29, 2025

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

For more context, please refer to issue #23058.

As previously mentioned in issue #23058, Ionic does not support redirecting from tab1 → non-tab1 → non-tab2 → tab2. The reason given was that Ionic aims to mimic native tab behavior and does not allow programmatic navigation between different tabs.

Apart from this limitation, I am facing another issue: Suppose a user navigates to a non-tab2 page through the flow described above. If the user then puts the app in the background and later, on the web, clicks a link intended to open tab2, the navigation fails. From Ionic’s perspective, this action is treated as an attempt to programmatically push a new tab, which is not supported.

This behavior causes significant issues, breaking the app in multiple scenarios and making deep linking unreliable in production environments. The problem is identical to the one described in the previous issue.

Expected Behavior

After triggering a deep link, the app should navigate to and show the correct tab.

Steps to Reproduce

The reproduction steps are outlined in the previous issue. The only change is the addition of the App Capacitor plugin to listen for deep links. When a deep link event occurs, the plugin pushes the page in the same manner as the button in the old reproduction.

Code Reproduction URL

Ionic Info

Ionic:

   Ionic CLI       : 7.2.0 (/Users/jakub/Projects/PUCWOLL/upfan/upfan-frontend/node_modules/.pnpm/@[email protected]/node_modules/@ionic/cli)
   Ionic Framework : @ionic/vue 8.4.2 (/Users/jakub/Projects/PUCWOLL/upfan/upfan-frontend/node_modules/.pnpm/@[email protected]_patch_hash=2huitwd2pkzidtuwvzqou7uahi/node_modules/@ionic/vue)

Capacitor:

   Capacitor CLI      : 7.0.1
   @capacitor/android : 7.0.1 (/Users/jakub/Projects/PUCWOLL/upfan/upfan-frontend/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/android)
   @capacitor/core    : 7.0.1 (/Users/jakub/Projects/PUCWOLL/upfan/upfan-frontend/node_modules/.pnpm/@[email protected]/node_modules/@capacitor/core)
   @capacitor/ios     : 7.0.1 (/Users/jakub/Projects/PUCWOLL/upfan/upfan-frontend/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@capacitor/ios)

Utility:

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

System:

   NodeJS : v22.11.0 (/Users/jakub/.nvm/versions/node/v22.11.0/bin/node)
   npm    : 10.9.0
   OS     : macOS Unknown

Additional Information

I attempted to modify the Ionic library to address the issue, but I was unable to resolve it, even when exposing and utilizing non-public methods like changeTab or resetTab. I understand the goal of closely matching native behavior, but this limitation presents a significant issue.

@ionitron-bot ionitron-bot bot added the triage label Jan 29, 2025
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

1 participant