| Index: ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
|
| diff --git a/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm b/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
|
| index 072e0d80a8c097bf01e63bc8e9240fa8d1777d2f..a99d66b51d79499710bcb68017f5c66736306568 100644
|
| --- a/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
|
| +++ b/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
|
| @@ -18,7 +18,7 @@
|
| bool IsLinkNavigation(web::WebState* web_state) {
|
| web::NavigationManager* navigationManager = web_state->GetNavigationManager();
|
| DCHECK(navigationManager);
|
| - int index = navigationManager->GetCurrentItemIndex();
|
| + int index = navigationManager->GetLastCommittedItemIndex();
|
| // Walks backward on the navigation items list looking for the first item
|
| // that is not the result of a redirect. Check if user arrived at that
|
| // via link click or a suggestion on the UI.
|
|
|