Skip to content

fix: Include fileid in route params#4524

Open
solracsf wants to merge 1 commit intomasterfrom
includeFileIdRouteParams
Open

fix: Include fileid in route params#4524
solracsf wants to merge 1 commit intomasterfrom
includeFileIdRouteParams

Conversation

@solracsf
Copy link
Copy Markdown
Member

@solracsf solracsf commented Mar 28, 2026

When clicking a folder in the Team Folders view, the goToRoute call omitted the fileid route param. Without it, the resolved route /files?dir=/X can collide with stale router state from a previous navigation, causing Vue Router to silently drop it as a NavigationDuplicated.

Adding fileid makes the target route /files/123?dir=/X, which is structurally distinct and navigates correctly.

On stable32:

return null as unknown as boolean

Returning null cast to boolean evaluates as falsy at runtime. The v3.x FileAction executor treated a falsy result as "action failed" and did not record this navigation as the successful result of a default action. This meant the router's state wasn't tied to this specific action's outcome, so the stale-route issue didn't surface before.

Fix #4499

@solracsf solracsf requested review from a team, nfebe, provokateurin, sorbaugh and susnux and removed request for a team March 28, 2026 14:09
@solracsf solracsf added 3. to review Items that need to be reviewed javascript Items related to Javascript code labels Mar 28, 2026
@solracsf solracsf requested a review from skjnldsv March 29, 2026 13:59
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf solracsf force-pushed the includeFileIdRouteParams branch from 478a350 to f0afc55 Compare March 30, 2026 11:29
@solracsf solracsf requested a review from susnux March 30, 2026 11:29
@solracsf
Copy link
Copy Markdown
Member Author

/backport to stable33

@solracsf
Copy link
Copy Markdown
Member Author

Fix for PHPstan: #4534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Items that need to be reviewed backport-request javascript Items related to Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Team folders visible but not accessible after NC 33 upgrade

3 participants