<p dir="auto">When I have routes</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Route(&quot;/test/&quot;, name=&quot;testRoute&quot;)
@Route(&quot;/test/page-{page}/&quot;, name=&quot;testRoutePaged&quot;, defaults={&quot;page&quot; = &quot;1&quot;})"><pre class="notranslate"><code class="notranslate">@Route("/test/", name="testRoute")
@Route("/test/page-{page}/", name="testRoutePaged", defaults={"page" = "1"})
</code></pre></div>
<p dir="auto">It would be nice instead of /test/page-1/ get automatically /test/. So duplicate content will not be generated. It can be solved using 301 redirect from /test/page-1/ to /test/, but I see much more clean solution.</p>
<p dir="auto">It could be done using something like "fallback" routeName, which will be used when all parameters equal default values, something like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Route(&quot;/test/&quot;, name=&quot;testRoute&quot;)
@Route(&quot;/test/page-{page}/&quot;, name=&quot;testRoutePaged&quot;, defaults={&quot;page&quot; = &quot;1&quot;}, fallbackRouteName=&quot;testRoute&quot;)"><pre class="notranslate"><code class="notranslate">@Route("/test/", name="testRoute")
@Route("/test/page-{page}/", name="testRoutePaged", defaults={"page" = "1"}, fallbackRouteName="testRoute")
</code></pre></div>
<p dir="auto">Let me know if its acceptable and I will create PR.</p>
<p dir="auto">Related issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10277191" data-permission-text="Title is private" data-url="https://github.com/sampart/WhiteOctoberPagerfantaBundle/issues/54" data-hovercard-type="issue" data-hovercard-url="/sampart/WhiteOctoberPagerfantaBundle/issues/54/hovercard" href="https://github.com/sampart/WhiteOctoberPagerfantaBundle/issues/54">sampart/WhiteOctoberPagerfantaBundle#54</a></p>
<p dir="auto">there is a bug which occurs when updating an entity with the same values of unique properties</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9837048" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/6651" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/6651/hovercard?comment_id=13382726&amp;comment_type=issue_comment" href="https://github.com/symfony/symfony/issues/6651#issuecomment-13382726">#6651 (comment)</a></p>