Skip to content

Commit 1400979

Browse files
committed
msglist: Stop double-%-encoding off-realm links which broke downloads (iOS)
This doesn't re-introduce #3315 (SafariView complaining on non-ASCII URLs) because all non-ASCII characters are still percent-encoded. That gets done by the URL constructor, which we started using in this codepath in the previous commit. See discussion and more detail: #4136 (comment) Fixes: #4136
1 parent efe3567 commit 1400979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/openLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { BrowserPreference, GlobalSettingsState } from '../types';
77
/** Open a URL in the in-app browser. */
88
export function openLinkEmbedded(url: URL): void {
99
if (Platform.OS === 'ios') {
10-
WebBrowser.openBrowserAsync(encodeURI(url.toString()));
10+
WebBrowser.openBrowserAsync(url.toString());
1111
} else {
1212
NativeModules.CustomTabsAndroid.openURL(url.toString());
1313
}

0 commit comments

Comments
 (0)