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

fix: URL action in data table list template #1428

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

T4m
Copy link
Contributor

@T4m T4m commented Sep 25, 2023

Description

In the CMS admin, when listing the files, we have up to 4 action buttons, with the two firsts "URL" & "Download".

Before this change : Both were links (one canonical, one to the file in media).

Now both are download links.

IMHO :

  • the "download" attribute on the "canonical url" action, is a mistake and should not be added.
  • the "download" attribute on the "download" action, is a good and correct improvement to the code.

It became more difficult to display the file in the browser without downloading it. (Now only "right click > open url" allows it.)

So this PR fixes this accordingly.

Also, I noted that the feature name adding the bug was "Styling update", but this change was more a behavior update, I think. So I didn't add anything to the changelog of my PR because it's more "going back to the documented state". However, it might be relevant to document somewhere that the previous version added the download attribute on the download link.

@fsbraun fsbraun merged commit 72e2d41 into django-cms:master Sep 26, 2023
24 checks passed
@fsbraun
Copy link
Sponsor Member

fsbraun commented Oct 1, 2023

This solves #1427

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