diff --git a/packages/doceditor/src/components/completed-form/CompletedForm.tsx b/packages/doceditor/src/components/completed-form/CompletedForm.tsx index 66f419416f..fa36983c63 100644 --- a/packages/doceditor/src/components/completed-form/CompletedForm.tsx +++ b/packages/doceditor/src/components/completed-form/CompletedForm.tsx @@ -142,10 +142,6 @@ export const CompletedForm = ({ return `${origin}${path}${filter.toUrlParams()}`; }; - const setHistory = (url: string) => { - history.pushState({}, "", url); - }; - const copyLinkFile = async () => { const origin = window.location.origin; @@ -161,14 +157,12 @@ export const CompletedForm = ({ const gotoCompleteFolder = () => { const url = getFolderUrl(completedForm.folderId, false); - setHistory(url); - window.location.replace(url); + window.location.assign(url); }; const handleBackToRoom = () => { const url = getFolderUrl(roomId, isAnonim); - setHistory(url); - window.location.replace(url); + window.location.assign(url); }; const fillAgainSearchParams = new URLSearchParams({