element-hq / element-hq/element-web

Allow media to be opened in a new tab

Open
#28,639 0 comments 0 reactions 0 assignees View on GitHub
A-Media O-Occasional T-Enhancement
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Your use case

#### What would you like to do?

I would like to be able to open media in a new tab. Before authenticated media was enabled middle clicking an image just worked, now it opens an error json saying "M_NOT_FOUND".

#### Why would you like to do it?

Opening an image in element's image viewer blocks you from composing a reply or looking at other rooms.
Downloading the image and then opening it takes multiple steps (hover image, click download button, confirm save dialog, browse to the downloaded file and open it) and saves a file on your hard drive that you have to remember to delete later.
Just middle clicking the image would open it right away in a new tab.

#### How would you like to achieve it?

Ideally just middle clicking an image should open it in a new tab.
I don't know what that requires technically, as it seems matrix requires an special header for authentication and won't work with cookies. Both Telegram and WhatsApp Web can somehow open images in a new tab using blob URLs, maybe that's a way to do it.

### Have you considered any alternatives?

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.