- 🇺🇦Ukraine AstonVictor
there is no reason to open a new tab for add/edit links. the user will be redirected back.
Entity Connect current feature only allow the users to enable or disable the Edit Content or Add Content.
No Options, if user would like to create a new content or edit existing content in new tab,
// Build the button element.
$element[$button_name] = [
'#type' => 'entityconnect_submit',
'#value' => $this->t('Edit content'),
'#name' => $button_name,
'#prefix' => "<div class = 'entityconnect-edit $classes'>",
'#suffix' => '</div>',
'#key' => $key,
'#field' => $this->fieldDefinition->getName(),
'#entity_type_target' => $this->entityType,
'#acceptable_types' => $this->acceptableTypes,
'#add_child' => FALSE,
'#weight' => 1,
'#attributes' => array('onclick' => 'this.form.target="_blank";return true;'),
];
Closed: works as designed
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
there is no reason to open a new tab for add/edit links. the user will be redirected back.