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

[stable28] feat: Reset route if neither the Viewer of the Sidebar is open #48002

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Sep 15, 2024

Backport of #47920

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot added enhancement 3. to review Waiting for reviews feature: files javascript feature: file sidebar Related to the file sidebar component labels Sep 15, 2024
@backportbot backportbot bot added this to the Nextcloud 28.0.11 milestone Sep 15, 2024
Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

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

Blocking, opening Viewer seems to change dir to root

When the viewer or the sidebar is opened, we add the fileid to the route.
When both of them are closed, we do not remove the fileid from the route.
This means that, upon reload, the sidebar will be opened even though it was closed previously.

This PR ensure that the fileid is removed from the route when both the Sidebar and the Viewer are closed.

Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge artonge force-pushed the backport/47920/stable28 branch from 962c703 to f5e0c9e Compare September 16, 2024 09:57
@artonge artonge marked this pull request as ready for review September 16, 2024 09:58
@artonge artonge requested a review from skjnldsv September 16, 2024 12:03
@artonge artonge enabled auto-merge September 16, 2024 12:04
@artonge artonge merged commit 512bd5a into stable28 Sep 16, 2024
50 checks passed
@artonge artonge deleted the backport/47920/stable28 branch September 16, 2024 12:21
@Altahrim Altahrim mentioned this pull request Oct 1, 2024
2 tasks
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 enhancement feature: file sidebar Related to the file sidebar component feature: files javascript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants