Set 'active' state based on URL pathname