<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynamically redirect to appropriate AEM page that is SEO friendly in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dynamically-redirect-to-appropriate-aem-page-that-is-seo/m-p/444037#M126892</link>
    <description>&lt;P&gt;I agree with&amp;nbsp;&lt;LI-USER uid="15800109"&gt;&lt;/LI-USER&gt;&amp;nbsp;, but rather than handling via servlet the best approach (in my personal opinion &lt;img class="lia-deferred-image lia-image-emoji" src="https://experienceleaguecommunities.adobe.com/html/@31B4D6D7B3510763F3CBB2AAB7997408/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;) would be a &lt;EM&gt;&lt;STRONG&gt;Filter&lt;/STRONG&gt;&lt;/EM&gt;. You can check if the request path is product path and send only those paths for further processing with whatever logic you have to find the valid/active products. Rest of the requests , you can let pass through.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Veena_Vikram_0-1646979739456.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/39152i1D3C35EE82DC736B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Veena_Vikram_0-1646979739456.png" alt="Veena_Vikram_0-1646979739456.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Veena ✌&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 06:24:15 GMT</pubDate>
    <dc:creator>Veena_Vikram</dc:creator>
    <dc:date>2022-03-11T06:24:15Z</dc:date>
    <item>
      <title>Dynamically redirect to appropriate AEM page that is SEO friendly</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dynamically-redirect-to-appropriate-aem-page-that-is-seo/m-p/444007#M126875</link>
      <description>&lt;P&gt;I have a case where I need to read URL's and dynamically redirect to the right product listing page. i.e. When hitting a product detail page, if the current product is out of stock, I want to handle logic and redirect to a product listing page that displays products within the same category.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best approach to this which is also SEO friendly? Would there be a way to dynamically redirect within the dispatcher or is this something a custom Java Servlet should handle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 02:00:16 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dynamically-redirect-to-appropriate-aem-page-that-is-seo/m-p/444007#M126875</guid>
      <dc:creator>akatsuki07</dc:creator>
      <dc:date>2022-03-11T02:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically redirect to appropriate AEM page that is SEO friendly</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dynamically-redirect-to-appropriate-aem-page-that-is-seo/m-p/444026#M126887</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17173612"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There has to be a logic based on which the page should redirect. To check if the product is out of stock, the call has to go to the server to get the count. Dispatcher won't be able to handle this since there is no identifier that dispatcher would have for out of stock product.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can handle this logic in your client side code (javascript) if the product component is using ajax. From there is the response for it is out of stock you can forward the request in js snippet using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;window.location.href="target page path"&lt;/PRE&gt;&lt;P&gt;Else you can handle it in model class or servlet.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 05:31:27 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dynamically-redirect-to-appropriate-aem-page-that-is-seo/m-p/444026#M126887</guid>
      <dc:creator>anish-s</dc:creator>
      <dc:date>2022-03-11T05:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically redirect to appropriate AEM page that is SEO friendly</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dynamically-redirect-to-appropriate-aem-page-that-is-seo/m-p/444037#M126892</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;LI-USER uid="15800109"&gt;&lt;/LI-USER&gt;&amp;nbsp;, but rather than handling via servlet the best approach (in my personal opinion &lt;img class="lia-deferred-image lia-image-emoji" src="https://experienceleaguecommunities.adobe.com/html/@31B4D6D7B3510763F3CBB2AAB7997408/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;) would be a &lt;EM&gt;&lt;STRONG&gt;Filter&lt;/STRONG&gt;&lt;/EM&gt;. You can check if the request path is product path and send only those paths for further processing with whatever logic you have to find the valid/active products. Rest of the requests , you can let pass through.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Veena_Vikram_0-1646979739456.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/39152i1D3C35EE82DC736B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Veena_Vikram_0-1646979739456.png" alt="Veena_Vikram_0-1646979739456.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Veena ✌&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 06:24:15 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dynamically-redirect-to-appropriate-aem-page-that-is-seo/m-p/444037#M126892</guid>
      <dc:creator>Veena_Vikram</dc:creator>
      <dc:date>2022-03-11T06:24:15Z</dc:date>
    </item>
  </channel>
</rss>

