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

Download button opens in new tab #946

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

PanierAvide
Copy link

This PR intends to change the current download button in navbar behaviour, to open offered image download in a new tab instead of redirecting current tab to image. Also fixes a typo in button classname.

Merge request checklist

  • All lints and tests pass. If needed, new unit tests were added.
  • If needed, the documentation has been updated.

@mistic100
Copy link
Owner

This should work with the already existing "download" attribute. But the spec says this is only valid when the image is on the same domain.

So my question is : how does your change behaves when the panorama is hosted on the same domain ? Does it still downloads the image ?

@PanierAvide
Copy link
Author

Thanks for your feedback. And in fact download attribute only works with same-domain, so default current behaviour of PSV is to change current tab to go to the picture (like a classic a href link).

I just checked and my edit works as expected when picture is hosted on same domain : download is started directly without opening new tab (like current behaviour) 😀

@mistic100 mistic100 merged commit c7b96ed into mistic100:main Apr 26, 2023
@mistic100 mistic100 added the bug label Apr 26, 2023
@mistic100 mistic100 added this to the 5.1.6 milestone Apr 26, 2023
@github-actions
Copy link

github-actions bot commented Jun 3, 2023

This feature/bug fix has been released in version 5.1.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants