Use RouteMatchInterface instead of current_path()