Skip to content
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

Always provide format with attachment URLs #2383

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Oct 22, 2022

What is this pull request for?

When linking to an attachment without the format, the browser does not necessarily know what to do with the file. Adding the suffix by default makes that better: Firefox won't, for example, try rendering a PDF file as HTML.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added changed tests to cover this change

When linking to an attachment without the format, the browser does not
necessarily know what to do with the file. Adding the suffix by default
makes that better: Firefox won't, for example, try rendering a PDF file
as HTML.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Thinking about somehow adding the name as well. Currently all files have the same name

@tvdeyen tvdeyen merged commit ea1f617 into AlchemyCMS:main Nov 18, 2022
tvdeyen added a commit that referenced this pull request Nov 19, 2022
Always provide format with attachment URLs
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