Teams-for-linux: Clicking on URL preview pictures don't lead to the URL

Created on 15 Apr 2019  Â·  12Comments  Â·  Source: IsmaelMartinez/teams-for-linux

Describe the bug
When you click on the generated preview image, it opens your browser to a blank page. Clicking the URL works as expected.

To Reproduce
Steps to reproduce the behaviour:

  1. Send or receive a URL
  2. When Teams generates a URL preview, click on it.
  3. This will open a blank browser tab
  4. See error

Expected behaviour
Clicking on the URL Preview image should open the desired URL

Screenshots
image

image

Desktop (please complete the following information):

  • OS: Fedora
  • Installation package: rpm
  • Version [e.g. 0.2.0]

Additional context
Dagnammit, Ismael!

bug help wanted

All 12 comments

Have you tried ctrl+click? Might be some sort of cookies/session stuff that is not pass throw.

It's definitely just the preview that is affected.

On Mon, 15 Apr 2019, 21:16 IsmaelMartinez, notifications@github.com wrote:

Have you tried ctrl+click? Might be some sort of cookies/session stuff
that is not pass throw.

I'm sure the link still works... Is just the "preview". Can you confirm??

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/IsmaelMartinez/teams-for-linux/issues/109#issuecomment-483402059,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZ5Ck4L7ER7hHwaH8Bz4t63f1uHVWRPJks5vhN4sgaJpZM4cwSGA
.

Ok, this is a bit more difficult than expected.

Basically, electron only gets the "about:blank" from the link.

I am just pushing a wee change so that those link just don't do anything.

To fix this, it will need some js magic and/or maybe moving to the webview instead of the iframe... but webview is a not recommended path by electron (as google is re-implementing it).

So, I will leave it in here and see if someone can come up with a solution for it.

Sorry!

It looks like the same issue appears for actions in cards, like the ones posted by Jira, Jenkins or other connectors:

image

Hi @orange-buffalo ,

Does it work with Ctrl+Click?

Thanks

Hi @IsmaelMartinez ,
Sorry, I tried this before posting a comment, and a new blank popup window was opened. I just did not wait long enough - now I see that the URL is loaded successfully in this popup window..
The only problem is that it is not a browser window, but another Electron one. So obviously no cookies, extensions etc from my browser is accessible in this window. Is there any way to open the default browser instead of this popup, just like for any other link in a Teams message?

Not as far as I am aware. You can open an external window but that doesn't pass the cookies/credentials/etc...

I think is down electron using its own profile, so security etc.

There might be a way, but I haven't found it... and I suspect it might not possible, yet.

Hi @ndmckeown and @orange-buffalo, this should be fixed now.

PR #172 is out there waiting for a review.

It will be in version 0.4.0. I you want to check it use snap edge channel or send me an email.

@ndmckeown , you can just shout.

--- updated... wrong nathan!

Hi @IsmaelMartinez, thanks for the new release!
For actions in cards, they now open with a simple click (without ctrl), but it is still an electron window (with no URL bar to copy the link from). There was some work done in one of the PRs to actually open the underlying URL in system browser. Is there any chance for those changes to be included into the app?

Have you tried doing Ctrl+click? Otherwise raise a feature request. Might be ok to add a "copy link" to the right click menu

Yes, it's the same with and without Ctrl. I've created #182 for this.

Was this page helpful?
0 / 5 - 0 ratings