I wrote a tiny patch that adds an attribute selector for all links that contain ".pdf" in the href. This accomplished giving icons on PDF links that ended in "#page=x" due to anchors. It would also be possible to add a selector that looked for a[href*='#page'] in case there are files that contain ".pdf" but aren't in fact PDF files. Either way works for me.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| iconizer_pdf_anchors[1].patch | 412 bytes | traviss359 |
Comments
Comment #1
thepanz commentedFixed in latest 6.x-dev version with CSS selector
a[href*='.pdf#page='].Hope it works and don't break any other links.
I'm glad if you can give me any feedback about my fix.
Regards
Comment #2
thepanz commentedFixed in latest 6.x-dev version