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

Provide way for open matrix links (matrix.to now and mx:// in future) directly in current app #5989

Closed
MurzNN opened this issue Jan 16, 2018 · 5 comments
Labels
Help Wanted Extra attention is needed P3 T-Enhancement

Comments

@MurzNN
Copy link
Contributor

MurzNN commented Jan 16, 2018

At now Riot Electron app rewrites in his interface all links to matrix resources to local, so link like https://matrix.to/#/#riot:matrix.org converts to internal file://... links, and on click - open them directly in current Riot instance.

But sometimes we receive links to matrix resources not in Riot, but in other sources (email, website, skype, telegram, etc), like:

etc. At now there are no way to open those links directly in current running Riot app.

We can only go to https://matrix.to website and run new separate Riot instance with this url. And harder way - paste this link in current Riot instance as message to some room, and after this - click on posted message for go to link.

Will be good to have ability to directly open matrix.to url in current Riot instance (web page or Electron app), via provide field to paste and open url.

As I thing, good place for this field url will be in Room directory page near room filter field with label "Open matrix url".

@lukebarnard1
Copy link
Contributor

lukebarnard1 commented Jan 16, 2018

I think a possible solution to this would be to use https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler, and register something like web+riot://.

And it looks like electron supports this too 😄 electron/electron#4896

@lampholder lampholder added feature P3 Help Wanted Extra attention is needed labels Jan 16, 2018
@MurzNN
Copy link
Contributor Author

MurzNN commented Jan 16, 2018

For provide protocol - we need to solve at first matrix-org/matrix-spec-proposals#455 issue. And even when protocol will be registered, we don't solve the problem when user receives links in old format like https://matrix.to/#/#riot:matrix.org

So first step is to add ability to open Matrix URI in Riot interface (in any link format - https://matrix.to/, matrix://, mx://, web+riot://, etc)

And second long step - is specify matrix:// protocol and integrate it in all Matrix components.

@t3chguy
Copy link
Member

t3chguy commented Jan 16, 2018

@MurzNN matrix.to could fire off the matrix:// or whatever link, that way it'd go full circle

@turt2live
Copy link
Member

This is a duplicate of #4940 and #3248

@t3chguy
Copy link
Member

t3chguy commented Jan 16, 2018

Closing as duplicate of #3248
the other is slightly more about the protohandler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Extra attention is needed P3 T-Enhancement
Projects
None yet
Development

No branches or pull requests

6 participants