litestar-vite-plugin 0.6.6 → 0.6.8

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.
@@ -51,7 +51,8 @@ export function route(routeName, ...args) {
51
51
  console.error(error.message);
52
52
  return "#";
53
53
  }
54
- return url;
54
+ const fullUrl = new URL(url, window.location.origin);
55
+ return fullUrl.href;
55
56
  }
56
57
  export function getRelativeUrlPath(url) {
57
58
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "litestar-vite-plugin",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "type": "module",
5
5
  "description": "Litestar plugin for Vite.",
6
6
  "keywords": [