mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
We now extend the default Eslint configuration and enforce styling with prettier for all of our frontend code.
9 lines
312 B
TypeScript
9 lines
312 B
TypeScript
import queryString from "query-string";
|
|
import { useLocation } from "react-router";
|
|
|
|
export function useRedirectionURL() {
|
|
const location = useLocation();
|
|
const queryParams = queryString.parse(location.search);
|
|
return queryParams && "rd" in queryParams ? (queryParams["rd"] as string) : undefined;
|
|
}
|