This commit is contained in:
SBD
2023-11-29 11:43:56 +03:00
parent 0461dc78be
commit 82b113f58a

View File

@@ -52,6 +52,14 @@ function renderContent (el=null) {
document.querySelector(".content").innerHTML = data.html
replaceHrefOnOnclick()
replace_select_language()
if (el){
history.pushState({
'section':data['section_url']
},
'',
`/section/${el.dataset['url']}/`
)
}
},
error: function (data){
alert(data.errors)