Page MenuHomePhabricator

"Download as PDF" on an old revision goes to Special:Book rather than Special:DownloadAsPdf
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Go to any old revision of a page
  • Click "Download as PDF"

What happens?:

You are sent to Special:Book, which at least in the case of enwiki means an error message saying to download as PDF instead.

What should have happened instead?:

I don't know whether DownloadAsPdf supports old revisions—it should, but if not, that's a feature request, not a bug. But if it does, then clicking "Download as PDF" should take you to that, and if it doesn't, the option should just not be there.

Event Timeline

Tamzin renamed this task from "Download as PDF" on an old revision goes to [[Special:Book]] rather than Special:DownloadAsPdf to "Download as PDF" on an old revision goes to Special:Book rather than Special:DownloadAsPdf.Apr 15 2022, 2:32 AM
Aklapper added a project: Electron-PDFs.

Hi, please always include full links and clear steps to reproduce.
I assume this is about English Wikipedia. I cannot reproduce using "Printable Version": It prints an old version.

"Download as PDF" on an old revision goes to Special:Book rather than Special:DownloadAsPdf

That in itself is not a bug so I'm closing this ticket.

If you want a PDF you should click the "Printable Version". If English Wikipedia still shows "Download as PDF" that should probably be removed and be a separate task asking for removing that. See also T172488 - I guess that https://gerrit.wikimedia.org/r/620481 was supposed to fix this once upon a time.

@Aklapper Sorry, I thought these steps were clear enough. The reason I think this is a bug is a) that it is inconsistent behavior and b) that there is thus no obvious way to download a PDF of an old revision (if such a thing is possible).

("Printable version" works as expected in both cases.)

Is the "Download as PDF" function unique to enwiki? At a glance, I see it also on frwiki ("Télécharger comme PDF") and enwiktionary.

I can reproduce this bug in commonswiki as well. Steps to reproduce:

  1. Go to https://commons.wikimedia.org/w/index.php?title=Commons:Simple_media_reuse_guide/id&oldid=736821866
  2. Click Download as PDF
  3. I was directed to https://commons.wikimedia.org/w/index.php?title=Special:Book&bookcmd=render_article&arttitle=Commons%3ASimple+media+reuse+guide%2Fid&returnto=Commons%3ASimple+media+reuse+guide%2Fid&oldid=736821866&writer=rl

Here's the screenshot:

image.png (406×998 px, 24 KB)

What should have happened instead?:

  • Should never go to Special:Book, since:
Book Creator is undergoing changes

Due to severe issues with our existing system, the Book Creator will no longer support saving a book as a PDF.