diff --git a/core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php b/core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php
index d456cc6..e463bf2 100644
--- a/core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php
+++ b/core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php
@@ -14,6 +14,6 @@
*/
class PathAliasConstraint extends Constraint {
- public $message = 'This is not the default revision. You can only change the URL alias for the published version of this content.';
+ public $message = 'You can only change the URL alias for the published version of this content.';
}
diff --git a/core/modules/path/tests/src/Functional/PathContentModerationTest.php b/core/modules/path/tests/src/Functional/PathContentModerationTest.php
index 9fe5627..2bb413a 100644
--- a/core/modules/path/tests/src/Functional/PathContentModerationTest.php
+++ b/core/modules/path/tests/src/Functional/PathContentModerationTest.php
@@ -59,7 +59,7 @@ public function testNodePathAlias() {
'title[0][value]' => 'forward revision',
'path[0][alias]' => '/moderated-content',
], t('Save and Create New Draft'));
- $this->assertSession()->pageTextNotContains('This is not the default revision. You can only change the URL alias for the published version of this content.');
+ $this->assertSession()->pageTextNotContains('You can only change the URL alias for the published version of this content.');
// Create some moderated content with no path alias.
$this->drupalGet('node/add/moderated');
@@ -77,7 +77,7 @@ public function testNodePathAlias() {
'title[0][value]' => 'forward revision',
'path[0][alias]' => '/forward-revision',
], t('Save and Create New Draft'));
- $this->assertSession()->pageTextContains('This is not the default revision. You can only change the URL alias for the published version of this content.');
+ $this->assertSession()->pageTextContains('You can only change the URL alias for the published version of this content.');
// Create some moderated content with no path alias.
$this->drupalGet('node/add/moderated');
@@ -95,7 +95,7 @@ public function testNodePathAlias() {
'title[0][value]' => 'forward revision',
'path[0][alias]' => '',
], t('Save and Create New Draft'));
- $this->assertSession()->pageTextNotContains('This is not the default revision. You can only change the URL alias for the published version of this content.');
+ $this->assertSession()->pageTextNotContains('You can only change the URL alias for the published version of this content.');
}
}