mirror of
https://github.com/documenso/documenso
synced 2026-05-24 01:18:23 +00:00
fix: direct template redirects (#1727)
This commit is contained in:
parent
a87af910c7
commit
7e6ac4db40
1 changed files with 5 additions and 1 deletions
|
|
@ -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`),
|
||||
|
|
|
|||
Loading…
Reference in a new issue