diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 037a976..749c3d4 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -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); diff --git a/templates/tb_base.html b/templates/tb_base.html index 73ae945..ecdda0e 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -148,37 +148,37 @@ function gtag_report_conversion(url) {
-