We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5605ab commit a81c3b0Copy full SHA for a81c3b0
src/vs/editor/browser/services/openerService.ts
@@ -224,8 +224,8 @@ export class OpenerService implements IOpenerService {
224
// open the url-string AS IS
225
href = resource;
226
} else {
227
- // open URI using the toString(noEncode)+encodeURI-trick
228
- href = encodeURI(externalUri.toString(true));
+ // open URI via "new URL(...).href encoding"
+ href = new URL(externalUri.toString(true)).href;
229
}
230
231
if (options?.allowContributedOpeners) {
0 commit comments