@mundogamernetwork/shared-ui 1.1.3 → 1.1.7

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": "@mundogamernetwork/shared-ui",
3
- "version": "1.1.3",
3
+ "version": "1.1.7",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -11,6 +11,7 @@
11
11
  "middleware",
12
12
  "pages",
13
13
  "plugins",
14
+ "public",
14
15
  "services",
15
16
  "stores",
16
17
  "types",
@@ -39,4 +40,4 @@
39
40
  "nuxt": "^3.15.4",
40
41
  "typescript": "^5.0.0"
41
42
  }
42
- }
43
+ }
Binary file
@@ -1,6 +1,7 @@
1
- export function buildLoginUrl(baseUrl: string, currentPath?: string): string {
1
+ export function buildLoginUrl(baseUrl: string, currentPath?: string, systemId?: string): string {
2
2
  const redirectTo = currentPath ?? (typeof window !== "undefined" ? window.location.href : "");
3
3
  const params = new URLSearchParams({ redirect_to: redirectTo });
4
+ if (systemId) params.set("system_id", systemId);
4
5
  return `${baseUrl}/login?${params}`;
5
6
  }
6
7