Changed url from :url to :id - page refresh is working. Made lesson and topic also