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

clicking on riot.im link from home page replaces Riot with the about.riot.im page #8331

Closed
uhoreg opened this issue Jan 30, 2019 · 8 comments

Comments

@uhoreg
Copy link
Member

uhoreg commented Jan 30, 2019

which is really bad on the desktop app. As reported at https://matrix.to/#/!iNmaIQExDMeqdITdHH:matrix.org/$154888409275433mNISv:matrix.org?via=matrix.org&via=linuxgaming.life&via=disroot.org Related to #8226

@jryans
Copy link
Collaborator

jryans commented Jan 30, 2019

Presumably this link also needs target="_blank" rel="noopener" added.

@uhoreg
Copy link
Member Author

uhoreg commented Jan 30, 2019

yup, although it might be good for whatever displays the home page to add those attributes rather than relying on people who edit the home.html to remember to add them

@raindropworks
Copy link

If it's what I read that as, I noticed something similar when trying to connect to my homeserver I just installed (I'm new to Matrix/Riot in general) I got the following error message when inputting my custom server info:
Can't connect to homeserver - please check your connectivity, ensure your homeserver's SSL certificate is trusted, and that a browser extension is not blocking requests.
And 'homeserver's SSL certificate' is a hyperlink. I clicked it thinking it would give me more information and instead it took me to the root index.html file of my web server. The only way I could get out was to fully exit Riot from the task tray in Win10

@lampholder
Copy link
Member

@uhoreg I don't know if we do any post-processing on the home.html - if we do then yes that would make sense

@minakitty that is related (inasmuch as we shouldn't be rendering that link without the target="_blank" rel="noopener" business

@jryans
Copy link
Collaborator

jryans commented Jan 31, 2019

I believe home.html is loaded directly as an unmodified static page.

The one @minakitty mentioned has already been fixed in matrix-org/matrix-react-sdk#2496, we just haven't released an Electron build with that fix yet.

@t3chguy
Copy link
Member

t3chguy commented Feb 1, 2019

We run home.html through internationalisation so I'd think there's some level of processing going on there

@jryans
Copy link
Collaborator

jryans commented Feb 1, 2019

We run home.html through internationalisation so I'd think there's some level of processing going on there

Ah, fair enough... We do a string replacement at load time for that.

I guess I am not thrilled about using more string replacement to adjust link hrefs (harder to get the replacement correct), but it could be done if we really want to solve this in one place for home.html.

jryans added a commit to jryans/element-web that referenced this issue Feb 1, 2019
@jryans jryans self-assigned this Feb 1, 2019
@jryans
Copy link
Collaborator

jryans commented Feb 1, 2019

The specific link reported here has been fixed in #8365.

@jryans jryans closed this as completed Feb 1, 2019
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

5 participants