-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF attachment not rendering right when ViewTransition is enabled. #7947
Comments
Could you add the We might also want a |
but I don't want to download it, I just want to view the file in browser. Fyi, it's not just pdf file, all images would show the similar result: |
|
Users don't have to add the attribute manually right? The compiler would handle them automatically? |
Yeah users would need to add it. By default we have to assume that same-site navigation is to another page and not to a file. |
I will go with |
@martrapp can you link to docs on those other routers? |
Do we need a mapping in the compiler for this? (e.g. transition:reload)? |
@chenxsan I changed the link in your example to
with the new Astro version (not yet released) the PDF is shows in the browser when the user clicks the link. |
Fixed by #8217. Will do a new RC tomorrow with these changes. |
What version of
astro
are you using?2.10.1
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
Say I have a pdf file containing Chinese texts under
public
folder, and I have a link to that pdf file in one of my pages:With ViewTransition enabled, clicking that link would return something like this:
What's the expected result?
I would expect the browser to show the pdf content.
Link to Minimal Reproducible Example
https://github.com/chenxsan/astro-view-transition-pdf
Participation
The text was updated successfully, but these errors were encountered: