Added method to Router class

strips the url using basename