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

Deep linking issues #771

Closed
amyblais opened this issue Apr 24, 2018 · 3 comments
Closed

Deep linking issues #771

amyblais opened this issue Apr 24, 2018 · 3 comments

Comments

@amyblais
Copy link
Member

Case 1

Repro Steps:

  1. Sign in to https://pre-release.mattermost.com on your desktop app
  2. Post mattermost://pre-release.mattermost.com/core/channels/developers into a channel
  3. Quit the desktop app
  4. Sign in to https://pre-release.mattermost.com on your browser
  5. Click on the link you posted in step 2.

Expected:
Desktop app launches, and opens the Developers channel.

Observed:
Mac: Link causes #705
Windows: Error message
screenshot_60


Case 2

Repro steps:

  1. Sign in to https://pre-release.mattermost.com on your desktop app
  2. Post mattermost://pre-release.mattermost.com/core/channels/developers into a channel
  3. Sign in to https://pre-release.mattermost.com on your browser
  4. Click on the link you posted in step 2.

Expected:
Desktop app launches, and opens the Developers channel.

Observed:
Windows: Same error as above.

@yuya-oc
Copy link
Contributor

yuya-oc commented Apr 30, 2018

Not reproduced for me on Windows 10.

@amyblais Would you check again? When you meet the error like the screenshot, please check "Show Details".

@amyblais
Copy link
Member Author

amyblais commented Apr 30, 2018

@yuya-oc This is the error message when I click "Show more details":

Application: Mattermost 4.1.0
Platform: Windows_NT 10.0.16299 x64
TypeError [ERR_INVALID_URL]: Invalid URL:
at onParseError (internal/url.js:219:17)
at parse (internal/url.js:228:3)
at new URL (internal/url.js:311:5)
at Function. (C:\Users\Amy\Downloads\mattermost-desktop-4.1.0-rc1-win64 (1)\resources\app.asar\main_bundle.js:15415:23)

However, when I repeat the steps in webapp, a blank screen opens in a second tab, so maybe this is a server issue?

@yuya-oc
Copy link
Contributor

yuya-oc commented May 1, 2018

As far as looking the error stack, somehow the problem is happening at permission request handler apart from deep linking. So it seems that there is the timing the handler can't correctly get URL when deep linking works. I'll add a fallback there.

About the second blank tab, it's webapp issue. I think the link has target="_blank" attribute, so web browsers try to open a new tab.

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

2 participants