Get route witout parameters

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…??

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