mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: /desktop-redirect should never be post-login saved path (#10237)
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ export function redirectTo(url: string) {
|
||||
export const isAllowedLoginRedirect = (input: string) => {
|
||||
const path = input.split("?")[0].split("#")[0];
|
||||
return (
|
||||
!["/", "/create", "/home", "/logout"].includes(path) &&
|
||||
!["/", "/create", "/home", "/logout", "/desktop-redirect"].includes(path) &&
|
||||
!path.startsWith("/auth/") &&
|
||||
!path.startsWith("/s/")
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user