fix: re route issue for new docs

This commit is contained in:
prssanna 2021-01-11 18:31:44 +05:30
parent 3447669465
commit 0ac0bfcb60

View file

@ -225,7 +225,7 @@ frappe.router = {
// Hence if this check is true, instead of changing location hash,
// we just do a back to go to the doc previous to the "new-doctype-1"
var re_route_val = this.get_sub_path(frappe.re_route[sub_path]);
if (decodeURIComponent(re_route_val) === decodeURIComponent(sub_path)) {
if (decodeURIComponent(re_route_val) !== decodeURIComponent(sub_path)) {
window.history.back();
return true;
} else {