Get route witout parameters


#1

i need to take only url without parameters
url is: /catdetailsdemo/60/ as example 60 is daynamic

if (app.views.main.router.url == ‘/catdetailsdemo/’) { }

how i can do that…??


#2
if (app.views.main.router.url.indexOf('/catdetailsdemo/') === 0) { }