core/modules/views/src/Form/ViewsExposedForm.php | 2 +- core/modules/views/src/ViewExecutable.php | 2 +- core/modules/views/views.theme.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/views/src/Form/ViewsExposedForm.php b/core/modules/views/src/Form/ViewsExposedForm.php index 32d19bd..ada6e59 100644 --- a/core/modules/views/src/Form/ViewsExposedForm.php +++ b/core/modules/views/src/Form/ViewsExposedForm.php @@ -116,7 +116,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#id' => drupal_html_id('edit-submit-' . $view->storage->id()), ); - $form['#action'] = $view->hasUrl() ? $view->getUrl()->toString() : Url::fromRoute(''); + $form['#action'] = $view->hasUrl() ? $view->getUrl()->toString() : Url::fromRoute('')->toString(); $form['#theme'] = $view->buildThemeFunctions('views_exposed_form'); $form['#id'] = Html::cleanCssIdentifier('views_exposed_form-' . String::checkPlain($view->storage->id()) . '-' . String::checkPlain($display['id'])); diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index d7ae30d..d828594 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -1774,7 +1774,7 @@ public function getUrl($args = NULL, $display_id = NULL) { foreach ($variables as $variable_name) { if (empty($args)) { - // Try to never put % in a url; use the wildcard instead. + // Try to never put % in a URL; use the wildcard instead. if ($id && !empty($this->argument[$id]->options['exception']['value'])) { $parameters[$variable_name] = $this->argument[$id]->options['exception']['value']; } diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index dc317e2..896bdeb 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -915,7 +915,7 @@ function template_preprocess_views_view_rss(&$variables) { // Compare the link to the default home page; if it's the default home page, // just use $base_url. $url_string = $url->setOptions($url_options)->toString(); - if ($url_string === Url::fromUri('user-path:' . $config->get('page.front'))) { + if ($url_string === Url::fromUri('user-path:' . $config->get('page.front'))->toString()) { $url_string = Url::fromRoute('')->setAbsolute()->toString(); }