Fixed Bug 69763: Confirm: Auth: Fixed checking of referenceUrl option existing

This commit is contained in:
Ilya Oleshko 2024-08-19 12:17:28 +03:00
parent 5143fb615e
commit d7497cdab4

View File

@ -41,9 +41,12 @@ const Auth = (props) => {
const { linkData } = props; const { linkData } = props;
let [searchParams, setSearchParams] = useSearchParams(); let [searchParams, setSearchParams] = useSearchParams();
const { t } = useTranslation(["Common"]); const { t } = useTranslation(["Common"]);
let referenceUrl = searchParams.get("referenceUrl");
const isFileHandler = referenceUrl.indexOf("filehandler.ashx") !== -1; const referenceUrl = searchParams.get("referenceUrl");
const isExternalDownloading = referenceUrl.indexOf("action=download") !== -1; const isFileHandler =
referenceUrl && referenceUrl.indexOf("filehandler.ashx") !== -1;
const isExternalDownloading =
referenceUrl && referenceUrl.indexOf("action=download") !== -1;
useEffect(() => { useEffect(() => {
loginWithConfirmKey({ loginWithConfirmKey({