Page MenuHomePhabricator

ElectronPdfService extension. When collection is not installed. The Download PDF link still presents selection screen.
Closed, ResolvedPublic


Reported @

There seems to be a bug since change 3ca54d4d1c73: The download link generated by the extension still has as action 'download-electron-pdf' which is no longer recognized, hence the choice screen is shown.

This should fix it:

--- a/src/ElectronPdfServiceHooks.php

+++ b/src/ElectronPdfServiceHooks.php

@@ -90,7 +90,7 @@ class ElectronPdfServiceHooks {

                return $specialPageTitle->getLocalURL(


                                'page' => $title->getPrefixedText(),

-                               'action' => 'download-electron-pdf'

+                               'action' => 'redirect-to-electron'




Event Timeline

Addshore created this task.Mar 6 2017, 6:06 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 6 2017, 6:06 PM

Change 341527 had a related patch set uploaded (by wmde-fisch):
[mediawiki/extensions/ElectronPdfService] Fix redirect when no Collection extension is installed

Change 341527 merged by jenkins-bot:
[mediawiki/extensions/ElectronPdfService] Fix redirect when no Collection extension is installed

Tobi_WMDE_SW closed this task as Resolved.Mar 10 2017, 2:24 PM