Viewer will not open current version after showing old version
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 119
- Forks
- 72
- Avg merge
- 18h 42m
- Merged PRs (30d)
- 24
Description
Describe the bug
When clicking the current version in the versions tab nothing happens.
https://github.com/user-attachments/assets/8c49a0b6-8a51-48f0-82d3-e73a242be5a5
To Reproduce
Steps to reproduce the behavior:
- Go to a file with multiple versions.
- Open the versions tab.
- Open an old version.
- Try to open the current version.
Expected behavior
The current version is shown in the viewer.
Screenshots
If applicable, add screenshots to help explain your problem.
Viewer open is called with only a path. I suspect that's why it does not change the file info which would include the version.
Additional context
This is on current main branch of server, viewer and text.
Observed in a playwright test in text: https://github.com/nextcloud/text/actions/runs/21130755060/job/60761050636?pr=8170
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the sequence in a file with multiple versions: open an old version from the versions tab, then select the current version. Read the viewer-open path and the linked Playwright test in nextcloud/text to trace how file information and versions are passed. Done means the current version opens in the viewer after an old version was shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100