check if new route matches the current one. added example