zudoku 0.35.0 → 0.35.1

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.
@@ -5,7 +5,7 @@ import "./chunk-HA7DTUK3-ZGg2W6yV.js";
5
5
  import "./hook-CfCFKZ-2.js";
6
6
  import "./ui/Button.js";
7
7
  import "./joinUrl-10po2Jdj.js";
8
- import { U as n, o as s } from "./index-PKytqmuw.js";
8
+ import { U as n, o as s } from "./index-OD2IZ2Nn.js";
9
9
  export {
10
10
  n as UNTAGGED_PATH,
11
11
  s as openApiPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudoku",
3
- "version": "0.35.0",
3
+ "version": "0.35.1",
4
4
  "type": "module",
5
5
  "homepage": "https://zudoku.dev",
6
6
  "repository": {
@@ -134,7 +134,7 @@
134
134
  "@lekoarts/rehype-meta-as-attributes": "3.0.2",
135
135
  "@mdx-js/react": "3.1.0",
136
136
  "@mdx-js/rollup": "3.1.0",
137
- "@pothos/core": "4.3.0",
137
+ "@pothos/core": "4.5.0",
138
138
  "@radix-ui/react-accordion": "1.2.3",
139
139
  "@radix-ui/react-alert-dialog": "1.1.6",
140
140
  "@radix-ui/react-aspect-ratio": "1.1.2",
@@ -172,7 +172,11 @@ export class OpenIDAuthenticationProvider implements AuthenticationProvider {
172
172
  authorizationServer.authorization_endpoint,
173
173
  );
174
174
 
175
- sessionStorage.setItem("redirect-to", redirectTo);
175
+ const finalRedirect = redirectTo.startsWith(window.location.origin)
176
+ ? redirectTo.slice(window.location.origin.length)
177
+ : redirectTo;
178
+
179
+ sessionStorage.setItem("redirect-to", finalRedirect);
176
180
 
177
181
  const redirectUrl = new URL(window.location.origin);
178
182
  redirectUrl.pathname = this.callbackUrlPath;