Skip to content

Commit

Permalink
[MM-55317] Force deep linking to use formatted path names when rewrit…
Browse files Browse the repository at this point in the history
…ing the URL (#2907)

* [MM-55317] Force deep linking to use formatted path names when rewriting the URL

* PR feedback
  • Loading branch information
devinbinnie authored Nov 10, 2023
1 parent a107127 commit 762324b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/views/viewManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ export class ViewManager {
}

if (browserView.isReady() && ServerManager.getRemoteInfo(browserView.view.server.id)?.serverVersion && Utils.isVersionGreaterThanOrEqualTo(ServerManager.getRemoteInfo(browserView.view.server.id)?.serverVersion ?? '', '6.0.0')) {
const pathName = `/${urlWithSchema.replace(browserView.view.server.url.toString(), '')}`;
const formattedServerURL = `${browserView.view.server.url.origin}${getFormattedPathName(browserView.view.server.url.pathname)}`;
const pathName = `/${urlWithSchema.replace(formattedServerURL, '')}`;
browserView.sendToRenderer(BROWSER_HISTORY_PUSH, pathName);
this.deeplinkSuccess(browserView.id);
} else {
Expand Down

0 comments on commit 762324b

Please sign in to comment.