muffin-admin 9.4.2 → 9.4.3

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": "muffin-admin",
3
- "version": "9.4.2",
3
+ "version": "9.4.3",
4
4
  "description": "NPM package for https://github.com/klen/muffin-admin",
5
5
  "files": [
6
6
  "src",
@@ -139,12 +139,7 @@ export function MuffinLogin(props: LoginProps) {
139
139
  auth: { loginURL },
140
140
  } = useMuffinAdminOpts()
141
141
  useEffect(() => {
142
- if (loginURL) {
143
- const { pathname, search } = window.location
144
- const url = new URL(loginURL)
145
- url.searchParams.set("redirect", pathname + search)
146
- window.location.replace(url.toString())
147
- }
142
+ if (loginURL) window.location.replace(loginURL)
148
143
  }, [loginURL])
149
144
  return <Login {...props} />
150
145
  }
package/src/index.tsx CHANGED
@@ -37,4 +37,4 @@ export async function initAdmin(prefix = "", containerId: string = "root") {
37
37
  )
38
38
  }
39
39
 
40
- export const VERSION = "9.4.2"
40
+ export const VERSION = "9.4.3"