diff --git a/static/js/user_profile.js b/static/js/user_profile.js
index 9b7945d..3c175ba 100644
--- a/static/js/user_profile.js
+++ b/static/js/user_profile.js
@@ -20,6 +20,9 @@ function writeMessage(el){
list_div.forEach(el=>{ el.classList.remove('selected'); });
el.classList.add('selected')
+ //updating the url without reloading
+ window.history.pushState(null, null, '/ru/profile/page/chat/')
+
},
error: function (data, exception){
console.log(400)
@@ -53,6 +56,9 @@ function technicalSupport(el){
list_div.forEach(el=>{ el.classList.remove('selected'); });
el.classList.add('selected')
+ //updating the url without reloading
+ window.history.pushState(null, null, '/ru/profile/page/support/')
+
},
error: function (data, exception){
@@ -86,6 +92,9 @@ function mySubscription(el){
list_div.forEach(el=>{ el.classList.remove('selected'); });
el.classList.add('selected')
+ //updating the url without reloading
+ window.history.pushState(null, null, '/ru/profile/page/my_subscribe/')
+
},
error: function (data, exception){
@@ -117,6 +126,9 @@ function myProfile(el){
list_div.forEach(el=>{ el.classList.remove('selected'); });
el.classList.add('selected')
+ //updating the url without reloading
+ window.history.pushState(null, null, '/ru/profile/page/change_profile/')
+
},
error: function (data, exception){
@@ -492,6 +504,14 @@ function createRoute(el, owner_type){
list_div.forEach(el=>{ el.classList.remove('selected'); });
el.classList.add('selected')
+ //updating the url without reloading
+ if(el.id == 'customer'){
+ window.history.pushState(null, null, '/ru/profile/page/create_route_for_customer/')
+ } else {
+ window.history.pushState(null, null, '/ru/profile/page/create_route_for_mover/')
+ }
+
+
//get dynamic value
@@ -538,6 +558,9 @@ function getRoute(el){
list_div.forEach(el=>{ el.classList.remove('selected'); });
el.classList.add('selected')
+ window.history.pushState(null, null, '/ru/profile/page/my_routes/')
+
+
},
error: function (data, exception){
@@ -659,5 +682,3 @@ function RequestCommercialOffer (el){
-
-
diff --git a/templates/blocks/b_user_profile.html b/templates/blocks/b_user_profile.html
index 22e34d3..fd7c993 100644
--- a/templates/blocks/b_user_profile.html
+++ b/templates/blocks/b_user_profile.html
@@ -9,19 +9,38 @@
Поиск посылки
-