Update views.view.aggregator_rss_feed update path resets the display path to site root
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3391559. -->
Reported by: [joevagyok](https://www.drupal.org/user/2876343)
Related to !8
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The <code>aggregator_update_8601()</code> update path re-saves the RSS view which resets the path to the view to "/" which is the homepage <code><front></code> route, causing the following error:</p>
<pre>InvalidArgumentException: Cannot redirect to an empty URL. in Symfony\Component\HttpFoundation\RedirectResponse->setTargetUrl() (line 68 of /var/www/html/vendor/symfony/http-foundation/RedirectResponse.php).<br>Drupal\Component\HttpFoundation\SecuredRedirectResponse->setTargetUrl() (Line: 39)<br>Symfony\Component\HttpFoundation\RedirectResponse->__construct() (Line: 26)<br>Drupal\Core\Routing\TrustedRedirectResponse->__construct() (Line: 127)<br>Drupal\redirect\EventSubscriber\RouteNormalizerRequestSubscriber->onKernelRequestRedirect()<br>call_user_func() (Line: 111)<br>Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 158)<br>Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)<br>Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)<br>Drupal\Core\StackMiddleware\Session->handle() (Line: 48)<br>Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)<br>Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)<br>Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 46)<br>Drupal\oe_webtools_laco_service\StackMiddleware\LacoServiceMiddlewareBase->doHandle() (Line: 21)<br>Drupal\oe_webtools_laco_service\StackMiddleware\LacoServiceMiddlewareDrupal10->handle() (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)<br>Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)<br>Drupal\Core\DrupalKernel->handle() (Line: 19)</pre><p>This is because when the user visits the front-page the <front> route gets resolved to an empty url causing this error.</front></p>
<p>The views config shipped in the <code>config/optional/views.view.aggregator_rss_feed.yml</code> contains the path, so this is a mistake in the update path only.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Update from v2.0.2 to v2.1.0.<br>
Visit front-page.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Fix the update path, however, it was released already, so beside fixing the update path, we need to add a new update path to fix broken RSS views display path to the correct one. After this, issue a 2.1.1 patch release.</p>
issue