PDF in *.md not opening in viewer - only download
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 659
- Forks
- 133
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 110
Description
Describe the bug
PDF inserted in markdown files are not opened with the Nexcloud PDF viewer. Only download.
To Reproduce
Steps to reproduce the behavior:
- Add a PDF file into a markdown file, either with the attach button or drag and drop.
- The PDF in the markdown file is seen with a thumbnail-image (screenshot)
- Click on PDF thumbnail
- PDF gets downloaded
Clicking a PDF in the Filebrowser of NC opens the built in viewer as expected.
Expected behavior
When clicking the PDF thumbnail the PDF would open in the NC PDF viewer in the browser.
Screenshots
Server details:
Newest version of NC-AIO
- Nextcloud version: 30.0.8 - 30.0.8.1
- PHP version: 8.3.19
- Database: pgsql PostgreSQL 16.8 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit
Client details:
- Browser: Safari and Chrome (both with same behavior)
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
Reproduce the issue by adding a PDF to a markdown file with the attach button or drag and drop, then clicking its thumbnail in Safari or Chrome. Compare that behavior with opening the same PDF from the Nextcloud Filebrowser viewer; done means the markdown thumbnail opens the built-in PDF viewer instead of downloading the file.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100