@jsenv/core 24.2.1 → 24.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "24.2.1",
3
+ "version": "24.2.2",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/dev_server.js CHANGED
@@ -165,7 +165,11 @@ const createRedirectorService = ({
165
165
  return {
166
166
  status: 307,
167
167
  headers: {
168
- location: `${request.origin}/${jsenvRedirectorHtmlRelativeUrlForProject}?redirect=${redirectTarget}`,
168
+ location: `${
169
+ request.origin
170
+ }/${jsenvRedirectorHtmlRelativeUrlForProject}?redirect=${encodeURIComponent(
171
+ redirectTarget,
172
+ )}`,
169
173
  },
170
174
  }
171
175
  },