From 393f16509598eafd33198a6eee60cf36010c89cd Mon Sep 17 00:00:00 2001 From: ArtemB Date: Tue, 24 Sep 2024 15:05:01 +0300 Subject: [PATCH] 1.3.0 get_routes in my_routes TRI-251 --- static/js/user_profile.js | 9 ++++++ templates/tb_base.html | 62 +++++++++++++++++++-------------------- 2 files changed, 40 insertions(+), 31 deletions(-) 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) { - +{# #}