fix: direct template redirects (#1727)

This commit is contained in:
David Nguyen
2025-03-28 14:45:54 +11:00
committed by GitHub
parent a87af910c7
commit 7e6ac4db40

View File

@ -113,7 +113,11 @@ export const DirectTemplatePageView = ({
const redirectUrl = template.templateMeta?.redirectUrl;
await (redirectUrl ? navigate(redirectUrl) : navigate(`/sign/${token}/complete`));
if (redirectUrl) {
window.location.href = redirectUrl;
} else {
await navigate(`/sign/${token}/complete`);
}
} catch (err) {
toast({
title: _(msg`Something went wrong`),