Doceditor:CompletedForm Fixed route

This commit is contained in:
Akmal Isomadinov 2024-07-25 13:34:12 +05:00
parent 612fbbff4d
commit 2a6604c613

View File

@ -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({