fixed form submit redirect issue..

This commit is contained in:
Cüneyt Şentürk 2022-10-12 11:56:11 +03:00
parent 762aad55e1
commit 256ca23add

View File

@ -478,9 +478,12 @@ export default class Form {
if (response.data.redirect) {
this.loading = true;
// Empty hash because /sale/customer/1#transaction redirect to sale/invoice/create.
windows.location.hash = '';
window.location.href = response.data.redirect;
if (window.location.hash !== undefined) {
if (typeof window.location.hash != "undefined" && window.location.hash.length) {
location.reload();
}
}