@sealcode/sealgen 0.17.29 → 0.17.30

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/lib/mount.js CHANGED
@@ -45,7 +45,7 @@ function mount(router, url, mountable, use_dummy_app = false, file_manager = use
45
45
  const url2 = ctx.URL;
46
46
  if (!url2.pathname.endsWith("/")) {
47
47
  url2.pathname += "/";
48
- ctx.redirect(url2.href);
48
+ ctx.redirect(url2.pathname + url2.search);
49
49
  }
50
50
  await next();
51
51
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.17.29",
3
+ "version": "0.17.30",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
package/src/mount.ts CHANGED
@@ -71,7 +71,7 @@ export function mount(
71
71
  const url2 = ctx.URL;
72
72
  if (!url2.pathname.endsWith("/")) {
73
73
  url2.pathname += "/";
74
- ctx.redirect(url2.href);
74
+ ctx.redirect(url2.pathname + url2.search);
75
75
  }
76
76
  await next();
77
77
  });