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>&lt;front&gt;</code> route, causing the following error:</p> <pre>InvalidArgumentException: Cannot redirect to an empty URL. in Symfony\Component\HttpFoundation\RedirectResponse-&gt;setTargetUrl() (line 68 of /var/www/html/vendor/symfony/http-foundation/RedirectResponse.php).<br>Drupal\Component\HttpFoundation\SecuredRedirectResponse-&gt;setTargetUrl() (Line: 39)<br>Symfony\Component\HttpFoundation\RedirectResponse-&gt;__construct() (Line: 26)<br>Drupal\Core\Routing\TrustedRedirectResponse-&gt;__construct() (Line: 127)<br>Drupal\redirect\EventSubscriber\RouteNormalizerRequestSubscriber-&gt;onKernelRequestRedirect()<br>call_user_func() (Line: 111)<br>Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch() (Line: 158)<br>Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw() (Line: 76)<br>Symfony\Component\HttpKernel\HttpKernel-&gt;handle() (Line: 58)<br>Drupal\Core\StackMiddleware\Session-&gt;handle() (Line: 48)<br>Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle() (Line: 106)<br>Drupal\page_cache\StackMiddleware\PageCache-&gt;pass() (Line: 85)<br>Drupal\page_cache\StackMiddleware\PageCache-&gt;handle() (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle() (Line: 46)<br>Drupal\oe_webtools_laco_service\StackMiddleware\LacoServiceMiddlewareBase-&gt;doHandle() (Line: 21)<br>Drupal\oe_webtools_laco_service\StackMiddleware\LacoServiceMiddlewareDrupal10-&gt;handle() (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle() (Line: 51)<br>Drupal\Core\StackMiddleware\StackedHttpKernel-&gt;handle() (Line: 704)<br>Drupal\Core\DrupalKernel-&gt;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