-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Workspace: add url encoding #9850
Workspace: add url encoding #9850
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed some unexpected behavior on browser reload:
- Open a workspace with
%20
in its directory name - Observe that the fragment in the url does not contain the escaped sequence for
%20
but instead a space character. - Reloading the browser window closes the workspace. (No workspace is selected upon reload)
Thank you @msujew , I'll take a look at that |
dc323cd
to
d718690
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that the issue exists on master
and is addressed by this change nicely. I tested this on both browser and Electron targets (Windows):
- Opening a directory with
%20
in its name works correctly ✔️ - The encoded URL appears in the browser bar ✔️
- Reloading the application correctly brings one back to the previously opened project ✔️
b0f0896
to
eed2909
Compare
The commit introduces the use of `encoding` when we are loading/reloading a workspace URL. Previously, the application would fail to open a workspace URL with reserved characters such as `%`.
eed2909
to
6468e6b
Compare
The commit introduces the use of `encoding` when we are loading/reloading a workspace URL. Previously, the application would fail to open a workspace URL with reserved characters such as `%`.
The commit introduces the use of `encoding` when we are loading/reloading a workspace URL. Previously, the application would fail to open a workspace URL with reserved characters such as `%`.
The commit adds the encoding of URIs. After this update, we can now
open workspaces with reserved symbols like '%' in their name.
What it does
FIxes #8909
The commit introduces the use of
encoding
when we are loading/reloading a workspace URL.Previously, the application would fail to open a workspace URL with reserved characters such as
%
.How to test
Review checklist
Reminder for reviewers