== Description
When exporting to PDF (i.e. [[:eu:Juan Sebastian Elkano]]) the sidebar is added as the first page of the file. This happens even if you are using the legacy vector mode.
== Steps to reproduce confirmed problems:
- Go to: https://en.wikipedia.org/wiki/Berlin with legacy vector off
- Use browser print option
**Expected:** The sidebar menu does not appear in the print
**Observed:** The sidebar menu appears in print
- Using a wiki where modern Vector is the default e.g. Basque Wikipedia
- Use "download as pdf" in the sidebar
**Expected:** The sidebar menu does not appear in the print
**Observed:** The sidebar menu appears in print
Note: what user preference you have enabled should have no impact on the download as pdf link in this case.
== Notes
This does not occur if the Download as PDF option is used in modern mode
There's reports of this bug occurring in legacy mode as well: T265217#6576790
== Developer notes
We need to update the print stylesheet for modern Vector.
I would recommend to fix that we add #mw-panel to the rules in https://github.com/wikimedia/mediawiki/blob/e49dd2476799cc042c74969bf427213f0606b958/resources/src/mediawiki.skinning/commonPrint.css#L31