element-hq / element-hq/element-web

Allow mobile redirect to hydrogen

Open
#19,870 0 comments 1 reaction 0 assignees View on GitHub
A-Mobile O-Occasional T-Enhancement X-Needs-Product Z-Platform-Specific
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?
When a user visits the element-web interface from a mobile device they get the "please install an app or use the desktop site" message which is great.

However, if the server administrator has hydrogen installed the interface could offer that as an option provided it's set in the config.

#### Why would you like to do it?
Offer users more choices

#### How would you like to achieve it?
In hydrogen-web's config.json the following options:
```
offer_hydrogen_interface = true (obviously off by default)
hydrogen_url = https://hydrogen.mydomain.com
```

### Have you considered any alternatives?

I've considered altering the code on my own server, however I think it would be a great feature to be kept upstream.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the mobile-device message and the hydrogen-web config.json handling in element-web. Verify how configuration values are loaded, then make the mobile interface offer the configured Hydrogen URL only when enabled and preserve the current message and default behavior when it is not configured.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, mobile-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.