title: TYPO3 v10.4.9 News Listview URL-Configuration
body: <p>I´m currently working on a project which uses the news-extension on various pages. To get rid of cryptic URLs, i added the following code to my <code>config.yaml</code>:</p>
  <pre><code>routeEnhancers:
    News:
      type: Extbase
      extension: News
      plugin: Pi1
      routes:
        - routePath: '/{news_title}'
          _controller: 'News::detail'
          _arguments:
            news_title: news
      defaultController: 'News::detail'
      aspects:
        news_title:
          type: PersistedAliasMapper
          tableName: tx_news_domain_model_news
          routeFieldName: path_segment
  </code></pre>
  <p>This gives me the result i want for some pages but for others, it throws a FE-Error:</p>
  <pre><code>(1/1) Symfony\Component\Routing\Exception\InvalidParameterException
  Parameter &quot;tx_news_pi1__news&quot; for route &quot;tx_news_pi1_0&quot; must match &quot;.+&quot; (&quot;&quot; given) to generate a corresponding URL.
  </code></pre>
  <p>This error appears on some pages, which include the news-plugin and should show a list view. The weird part is, that as this is a regular page, it should have a regular URL which perfectly works without the code mentioned above. Even more weird is the fact, that i can reach the news-detail page when manually entering the desired speaking-URL. So URL-rewriting for news detail views works on every page but it breaks other list view pages´ URLs that have worked before.</p>
  <p>I spent a few hours trying to figure out where the error comes from and found out:</p>
  <ul>
  <li>if i change <code>settings.categoryConjunction</code> from <code>OR</code> to <code>AND</code>, the list view works but logically shows wrong results</li>
  <li>same thing happens when i change <code>settings.categories</code> i.e when i add a complete category instead of a subcategory</li>
  </ul>
  <p><a href="https://i.stack.imgur.com/ZPxxs.png" rel="nofollow noreferrer">Click me to see backend configuration</a></p>
  <p>Conclusion:</p>
  <ul>
  <li><code>myproject.local/somepagewithnews</code> works</li>
  <li><code>myproject.local/somepagewithnews/detail/articleWithSpeakingUrl</code> works</li>
  <li><code>myproject.local/anotherpagewithnews</code> doesnt work</li>
  <li><code>myproject.local/anotherpagewithnews/articleWithSpeakingUrl</code> <strong>works</strong>. Note that there appears no <code>/detail/</code> in between. Adding it will result in a <code>Page does not exist</code>-Error.</li>
  </ul>
  <p>Without the code, every page and every news article works with the difference that the article (not the pages with list views) have cryptic URLs.</p>
  <p>I hope my issue is understandable and someone here can help me as this is driving me nuts.
  Thanks in advance!!</p>