Bug
When uploading media files like PDF or docx via the page directly instead of using the global media section, htmx navigation causes the link to load in the content area instead of opening the PDF viewer/downloading the file.
Steps to reproduce:
- Upload a pdf file called test.pdf using the global media tab
- Create a test page and upload the same pdf file using page media
- Inserts links to both the global and local media file
Page content:
---
title: test
---
Global Link: [test.pdf](media://test.pdf)
Local Link: [test.pdf](test.pdf)
When using htmx navigation, the global link works as expected, whereas the local link causes the PDF content to be displayed in the text area.
I would expect that only 'real' page links are handled by htmx and every other link is handled by the browser. Uploading media files locally seems to be okay according to the grav documentation https://learn.getgrav.org/17/content/media#where-to-put-your-media-files
Versions
Grav v2.0.4
Admin v2.0.9
Helios v2.1.8
Bug
When uploading media files like PDF or docx via the page directly instead of using the global media section, htmx navigation causes the link to load in the content area instead of opening the PDF viewer/downloading the file.
Steps to reproduce:
Page content:
When using htmx navigation, the global link works as expected, whereas the local link causes the PDF content to be displayed in the text area.
I would expect that only 'real' page links are handled by htmx and every other link is handled by the browser. Uploading media files locally seems to be okay according to the grav documentation https://learn.getgrav.org/17/content/media#where-to-put-your-media-files
Versions