How can I create menu links to external URLs? With my module MYMODULE I would like to create external link and place it into main menu.
Is it possible to do that in MYMODULE.links.menu.yml file or MYMODULE.routing.yml?

Something like this???

mymodule.links.menu.yml

mymodule.googlecom:
  title: 'Google'
  route_name: 'googlecom'
  menu_name: main


mymodule.routing.yml

googlecom:
  path: 'http://google.com/'
mymodule.menu_external_link:
  title: 'External link'
  url: 'https://www.drupal.org'
  menu_name: main
  weight: 10
  options:
    attributes:
      target: _blank
      class: my-class