Commit 0d9f0580 authored by catch's avatar catch

Issue #2620212 by aaronbauman: "Use a relative path" is not an accurate instruction for url alias

parent 395cb8ba
......@@ -111,7 +111,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $pid = NU
'#default_value' => $this->path['alias'],
'#maxlength' => 255,
'#size' => 45,
'#description' => $this->t('Specify an alternative path by which this data can be accessed. For example, type "/about" when writing an about page. Use a relative path with a slash in front.'),
'#description' => $this->t('Specify an alternative path by which this data can be accessed. For example, type "/about" when writing an about page.'),
'#field_prefix' => $this->requestContext->getCompleteBaseUrl(),
'#required' => TRUE,
);
......
......@@ -53,7 +53,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
'#default_value' => $path['alias'],
'#required' => $element['#required'],
'#maxlength' => 255,
'#description' => $this->t('The alternative URL for this content. Use a relative path. For example, enter "/about" for the about page.'),
'#description' => $this->t('Specify an alternative path by which this data can be accessed. For example, type "/about" when writing an about page.'),
);
$element['pid'] = array(
'#type' => 'value',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment