diff --git a/core/modules/views/src/Plugin/views/display/PathPluginBase.php b/core/modules/views/src/Plugin/views/display/PathPluginBase.php index e800f07..754408c 100644 --- a/core/modules/views/src/Plugin/views/display/PathPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/PathPluginBase.php @@ -457,7 +457,7 @@ protected function validatePath($path) { } if (!empty($parsed_url['query'])) { - $errors[] = $this->t('No path query allowed.'); + $errors[] = $this->t('No query allowed.'); } $path_sections = explode('/', $path); diff --git a/core/modules/views_ui/src/Tests/DisplayPathTest.php b/core/modules/views_ui/src/Tests/DisplayPathTest.php index 2ca96cb..f174e6a 100644 --- a/core/modules/views_ui/src/Tests/DisplayPathTest.php +++ b/core/modules/views_ui/src/Tests/DisplayPathTest.php @@ -93,19 +93,19 @@ public function testMenuOptions() { // Add a new page display. $this->drupalPostForm(NULL, array(), 'Add Page'); - // Add an invalid path (empty just fragment). + // Add an invalid path (only fragment). $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', array('path' => '#foo'), t('Apply')); $this->assertText('Path is empty'); - // Add a path with a query. + // Add an invalid path with a query. $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', array('path' => 'foo?bar'), t('Apply')); - $this->assertText('No path query allowed.'); + $this->assertText('No query allowed.'); - // Add a path with just a query. + // Add an invalid path with just a query. $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_1/path', array('path' => '?bar'), t('Apply')); $this->assertText('Path is empty'); - // Provide a valid path string. + // Provide a random, valid path string. $random_string = str_replace(['?', '#'], '_', $this->randomString()); // Save a path.