base url is present twice in EntityConfirmFormBase the cancel button

Hi, the generated  URL of my EntityConfirmFormBase cancel button is wrong

because the base URL is present twice , is it normal ?

My base url is “myproject” and the url : “http://localhost/myproject/myproject/admin/structure/mymodule/myconfigentitytype”

dpm returns that string:

base:myproject/admin/structure/mymodule/myconfigentitytype
 public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
 
  dpm($form['actions']['cancel']['#url']->getUri());
 
  return $form;
 }

 

Thx in advance

 

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/4/feed