1.3.0 get_routes in my_routes TRI-251

This commit is contained in:
2024-09-24 15:05:01 +03:00
parent b4beac26a7
commit 393f165095
2 changed files with 40 additions and 31 deletions

View File

@@ -605,8 +605,17 @@ function sendRoute(el, routeID = null){
inline:'start'
});
let currentUrl = window.location.pathname;
let newUrl = '';
if(currentUrl.includes('/create_route_for_customer')){
newUrl = currentUrl.replace('/create_route_for_customer', '/my_routes');
}else if(currentUrl.includes('/create_route_for_mover')){
newUrl = currentUrl.replace('/create_route_for_mover', '/my_routes');
}
window.history.replaceState(null, '', newUrl);