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

Share room dialog use hosted riot URL #7009

Closed
skylord123 opened this issue Jul 11, 2018 · 12 comments
Closed

Share room dialog use hosted riot URL #7009

skylord123 opened this issue Jul 11, 2018 · 12 comments

Comments

@skylord123
Copy link

skylord123 commented Jul 11, 2018

Description

I host my own instance of riot web so I can use the dark theme by default as well as customize some other things. I found that when I share a room it always uses matrix.to for the host. I would like the option to be able to generate URLs that point straight to my riot web instance instead of going to matrix.to and listing available matrix clients.

The reason I am requesting this is because some users are not tech savvy and will not be able to join a room as guest very easily. I would rather have it go straight to my riot-web host so it opens the chat right away. This is mainly because my wife likes to webcam with her mom (across the world) and her mom is not technologically inclined (she has troubles trying to get facebook video chat or skype to work). Making it so my wife can just give her mom the URL that plops her straight into the room would be highly beneficial for this.

Even if the link generated is a riot.im one that avoids the matrix page altogether would work as well (but I would prefer to be able to specify I want to use my own riot-web install host).

I think this could be accomplished by adding a checkbox to the share room dialog that says something like "Use riot for this link" that would use the current client's connected riot host.

@t3chguy
Copy link
Member

t3chguy commented Jul 11, 2018

it uses matrix.to for the host...?

@skylord123
Copy link
Author

You are right, correcting.

@lampholder
Copy link
Member

This is related (from a UX perspective at least) to #6909

@BloodyIron
Copy link

Yeah if I'm self-hosting riot, matrix, and the whole infra (non-federated, internal auth), how would I change the share URLs from matrix.to to mydomain.tld?

@BloodyIron
Copy link

Just modify src/matrix-to.js? ( https://github.com/matrix-org/matrix-react-sdk/pull/2250/files/d802ee0fa2ce0a68986f848b9924ac352ededf54#diff-c1849c14ee26cff3674a5b7757cd42ad )

How does self-hosted need to be configured for such?

@BloodyIron
Copy link

Er, I'm still not entirely sure how to nicely change the "matrix.to" host url when building riot.im myself. I change it in matrix-react-sdk, in matrix-to.js when building? Or is there any chance we can have it as a parameter in config.json for the riot-web package? Hmmm...

@t3chguy
Copy link
Member

t3chguy commented Nov 4, 2018

If you change it then you'll lose compatibility with people who send matrix.to links (they'll no longer be intercepted and opened directly and instead they'll go to the matrix.to Web page)

@t3chguy
Copy link
Member

t3chguy commented Nov 4, 2018

(e.g those made by the mobile apps)

@BloodyIron
Copy link

If you change it then you'll lose compatibility with people who send matrix.to links (they'll no longer be intercepted and opened directly and instead they'll go to the matrix.to Web page)

How do I get it to go to my infra though? Without relying on the "matrix.to" public domain.

I'm not beyond recompiling the mobile versions too ;P

@aaronraimist
Copy link
Collaborator

Fixed by matrix-org/matrix-react-sdk#3500

See permalinkPrefix in https://github.com/vector-im/riot-web/blob/develop/docs/config.md for documentation

@BloodyIron
Copy link

Woot! :D

@skylord123
Copy link
Author

Pretty stoked on this, thanks devs!

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

No branches or pull requests

6 participants