fixes the body state class for urls-with-params

This fix solve the problem that caused by params on url.

example: `/books/:bookId` was translated to `books:bookId`.**now** it will translate to `books-bookId`