Topic on Extension talk:ElectronPdfService/Archive

When collection is not installed. The Download PDF link still presents selection screen.

2
Summary by Addshore

Per the change @ https://gerrit.wikimedia.org/r/#/c/341527/ being merged this should now be fixed.

193.190.131.67 (talkcontribs)

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'

                        ]

                );

        }

Addshore (talkcontribs)