webix jet get url value onafterrender

Hello! I`m try to send value in url like this.$scope.show("/step/+item.id");
And in step.js i try:
onAfterRender:()=>{
const currentStep = getStepByUrl();
}

My problen in that the application is rendered first, and after the url is changed(

I will be glad to help

While the real URL in browser may or may not change, the getUrl API will alway return the current active URL

https://snippet.webix.com/kuzx7g7x

Also, you can use parameters instead of url segments, which result in more clean code

https://snippet.webix.com/7r6dyvlu