@ludo.ninja/components 2.2.55 → 2.2.56

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.
@@ -7,6 +7,6 @@ const useRedirectToLoginWindow = () => {
7
7
  const NEXT_PUBLIC_ENV_VALUE = (0, env_1.useEnvStore)((state) => state.NEXT_PUBLIC_ENV_VALUE);
8
8
  const isFromLocalhost = NEXT_PUBLIC_ENV_VALUE === "development";
9
9
  const domainType = isFromLocalhost ? "stage" : NEXT_PUBLIC_ENV_VALUE;
10
- return () => window.open(`${ludoDomains_1.ludoDomains[domainType]["auth"]}/login/?fallback_url=${window.location.href.replace(/\s/g, "")}${isFromLocalhost ? "&isFromLocalhost=true" : ""}`, "_self");
10
+ return () => window.open(`${ludoDomains_1.ludoDomains[domainType]["auth"]}/login${isFromLocalhost ? "?isFromLocalhost=true&" : "?"}fallback_url=${window.location.href.replace(/\s/g, "")}`, "_self");
11
11
  };
12
12
  exports.useRedirectToLoginWindow = useRedirectToLoginWindow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "2.2.55",
3
+ "version": "2.2.56",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",