$route_name = \Drupal::routeMatch()->getRouteName();
use \Drupal\Core\Url; $url = Url::fromRoute('view.VIEW_MACHINE_NAME.PAGE_MACHINENAME');