Welcome to the Treehouse Community
Looking to learn something new?
G H Mahimaanvita16,234 Points
Not sure what exact keyword does
I did not add the 'exact' keyword in
Why didn't that happen?
It works if I add the 'exact' keyword
I thought the 'exact' keyword prevents routing if the url dosent match exactly.... but dosen't it look like it's doing the opposite here?
I think it's because the method only works if you aren't already in a 'courses' path, otherwise it won't rerender. Actually, if you don't have 'exact' and you type in a '/courses/css' path in the browser when you aren't already in a courses path it will redirect you to '/courses/html'