| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
This allows us to easily test our redirect path construction logic where we get the relative path, the query string and construct a redirect path. By extracting this from `redirect`, we can easily test this logic in a unit test. I did this so we could test some logic where slashes in query strings should be made human-friendly for users.
|
✨ Coder.com for PR #4928 deployed! It will be updated on every commit.
|
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## main #4928 +/- ##
==========================================
+ Coverage 69.96% 70.02% +0.05%
==========================================
Files 29 29
Lines 1655 1658 +3
Branches 364 364
==========================================
+ Hits 1158 1161 +3
Misses 423 423
Partials 74 74
Continue to review full report at Codecov.
|
Sorry, something went wrong.
* refactor(http): extract logic into constructRedirectPath This allows us to easily test our redirect path construction logic where we get the relative path, the query string and construct a redirect path. By extracting this from `redirect`, we can easily test this logic in a unit test. I did this so we could test some logic where slashes in query strings should be made human-friendly for users. * feat(testing): add tests for constructRedirectPath Co-authored-by: Asher <ash@coder.com>
| Back | FazBrowse Home | New Git URL |
When a user opens code-server at a url like localhost:8080 without the -e (ignore last opened flag), we redirect to that workspace and append the folder as a query param.
Before, it would encode the url to something like: localhost:8080/?folder=%2FUsers%2Fjp%2Fdev%2Fcoder
Now, it maintains the slashes and redirects to: localhost:8080/?folder=/Users/p/Fdev/coder
Fixes this issue coder/vscode#45 (comment) identified in the VS Code 1.64 update.