Fixes printer-friendly/export-pdf links in ajax paged views [#1018 state:resolved]