Skip to content

fix(files,files_sharing): swallow redirected navigation errors#59842

Merged
susnux merged 2 commits intomasterfrom
fix/swallow-redirected-navigation
Apr 23, 2026
Merged

fix(files,files_sharing): swallow redirected navigation errors#59842
susnux merged 2 commits intomasterfrom
fix/swallow-redirected-navigation

Conversation

@solracsf
Copy link
Copy Markdown
Member

@solracsf solracsf commented Apr 22, 2026

Summary

The ignoreDuplicateNavigation catch wrapping Router.prototype.push / replace in both routers only handled NavigationFailureType.duplicated.

redirected failures, thrown when an in-flight navigation is short-circuited by a guard, fell through and surfaced as:

Uncaught (in promise) Error: Redirected when going from "/files?dir=/X" to "/files" via a navigation guard.

in users' browser consoles. These failures still reach a valid view, so they should be treated the same as duplicated ones.

Reported via nextcloud/groupfolders#4499 and surfaced while reviewing nextcloud/groupfolders#4586.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@solracsf solracsf requested a review from susnux April 22, 2026 11:45
@solracsf solracsf requested review from a team and skjnldsv as code owners April 22, 2026 11:45
@solracsf solracsf requested review from szaimen and removed request for a team April 22, 2026 11:45
@solracsf solracsf added bug 3. to review Waiting for reviews labels Apr 22, 2026
@solracsf solracsf added this to the Nextcloud 34 milestone Apr 22, 2026
@solracsf solracsf self-assigned this Apr 22, 2026
@solracsf

This comment was marked as outdated.

@solracsf

This comment was marked as outdated.

@solracsf
Copy link
Copy Markdown
Member Author

/compile

@solracsf
Copy link
Copy Markdown
Member Author

/backport e03bdbb to stable33

@solracsf
Copy link
Copy Markdown
Member Author

/backport e03bdbb to stable32

@susnux susnux requested a review from nfebe April 22, 2026 20:28
Copy link
Copy Markdown
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems some unrelated changes slipped in - l10n and workflow files.

solracsf and others added 2 commits April 23, 2026 13:47
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux susnux force-pushed the fix/swallow-redirected-navigation branch from 5e6d741 to ed7223b Compare April 23, 2026 11:47
@susnux susnux dismissed miaulalala’s stale review April 23, 2026 11:47

was due to base branch issues.

@susnux susnux requested a review from miaulalala April 23, 2026 11:47
Copy link
Copy Markdown
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks a bunch :shipit:

@susnux susnux merged commit 96206dd into master Apr 23, 2026
142 of 144 checks passed
@susnux susnux deleted the fix/swallow-redirected-navigation branch April 23, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants