Skip to content

fix: exportFilename generates PDF outside dist folder and creates incorrect download links#2313

Merged
antfu merged 1 commit into
slidevjs:mainfrom
RobertoBochet:fix/#2312
Oct 24, 2025
Merged

fix: exportFilename generates PDF outside dist folder and creates incorrect download links#2313
antfu merged 1 commit into
slidevjs:mainfrom
RobertoBochet:fix/#2312

Conversation

@RobertoBochet

Copy link
Copy Markdown
Contributor

This PR proposes a fix for issue #2312

The computation of the PDF path is now centralized in the packages/slidev/node/commands/build.ts file. This applies whether the filename is the default one or set via exportFilename. Previously, this computation was only performed for the default filename.

@netlify

netlify Bot commented Oct 23, 2025

Copy link
Copy Markdown

Deploy Preview for slidev ready!

Name Link
🔨 Latest commit 8edef6c
🔍 Latest deploy log https://app.netlify.com/projects/slidev/deploys/68f9719bc51e180009fa647d
😎 Deploy Preview https://deploy-preview-2313--slidev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@RobertoBochet RobertoBochet changed the title Fix exportFilename generates PDF outside dist folder and creates incorrect download links fix: exportFilename generates PDF outside dist folder and creates incorrect download links Oct 23, 2025
@antfu
antfu merged commit 89ae0cc into slidevjs:main Oct 24, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants