From 0d9f0580f4065a302411f0a6c9174267e64f731c Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Tue, 3 May 2016 13:36:11 +0100 Subject: [PATCH] Issue #2620212 by aaronbauman: "Use a relative path" is not an accurate instruction for url alias --- core/modules/path/src/Form/PathFormBase.php | 2 +- core/modules/path/src/Plugin/Field/FieldWidget/PathWidget.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/path/src/Form/PathFormBase.php b/core/modules/path/src/Form/PathFormBase.php index 65e23e04098c..dba3a3fa5d7b 100644 --- a/core/modules/path/src/Form/PathFormBase.php +++ b/core/modules/path/src/Form/PathFormBase.php @@ -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, ); diff --git a/core/modules/path/src/Plugin/Field/FieldWidget/PathWidget.php b/core/modules/path/src/Plugin/Field/FieldWidget/PathWidget.php index 78b7eccb2724..366db885a699 100644 --- a/core/modules/path/src/Plugin/Field/FieldWidget/PathWidget.php +++ b/core/modules/path/src/Plugin/Field/FieldWidget/PathWidget.php @@ -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', -- GitLab