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.

CommentFileSizeAuthor
iconizer_pdf_anchors[1].patch412 bytestraviss359

Comments

thepanz’s picture

Version: 5.x-1.1 » 6.x-1.x-dev
Status: Active » Needs review

Fixed 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

thepanz’s picture

Status: Needs review » Fixed

Fixed in latest 6.x-dev version

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.