<?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: Internal Linking with Route Params in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1037691#M40586</link>
    <description>&lt;P&gt;Hey Jaycee!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to circle back on this. I'm not sure it is an actual React problem. More just that I can't link to a filtered page in the CMS. Here's an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under content for the URL I can set it to the Products Page, but not a filtered version of the Products Page, as that is not an option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under External for the URL it fails when I set it to&amp;nbsp;&lt;A href="https://example.com/products?filter={example-filter}" target="_blank"&gt;https://example.com/products?filter={example-filter}&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally I get this error message on the page when I set an external URL with the route params.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"status":"error","message":"Cannot parse path {url={type=EXTERNAL, content_id=null, href=https:",&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Finally in the console I get a 400 bad request error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Katie&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 18:46:28 GMT</pubDate>
    <dc:creator>KWallace7</dc:creator>
    <dc:date>2024-09-06T18:46:28Z</dc:date>
    <item>
      <title>Internal Linking with Route Params</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1036497#M40556</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question for linking from one page to another with route parameters. We have a react app running with a bunch of products, and to filter the products there are route params added. I want to link from the home page to this filtered version of the Products page. There are a lot of instances of this so want to do it through the CMS if possible. I know it is possible to link these from different pages with set a tags in the code as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some more info. If the Link or URL CMS field is set to content you can set it to the Products page, but not a filtered Products page. If it is set to the External setting it throws an error as it is under the same domain.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if there is a solution to this!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Katie&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 16:52:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1036497#M40556</guid>
      <dc:creator>KWallace7</dc:creator>
      <dc:date>2024-09-04T16:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Linking with Route Params</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1036651#M40557</link>
      <description>&lt;P&gt;Hi, @KWallace7 &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question. I'd like to invite some of our amazing community experts who have React experience to the conversation. Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/630808"&gt;@james-portant&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;do you have any suggestions for&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/786447"&gt;@KWallace7&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 23:33:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1036651#M40557</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-09-04T23:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Linking with Route Params</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1037691#M40586</link>
      <description>&lt;P&gt;Hey Jaycee!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to circle back on this. I'm not sure it is an actual React problem. More just that I can't link to a filtered page in the CMS. Here's an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under content for the URL I can set it to the Products Page, but not a filtered version of the Products Page, as that is not an option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under External for the URL it fails when I set it to&amp;nbsp;&lt;A href="https://example.com/products?filter={example-filter}" target="_blank"&gt;https://example.com/products?filter={example-filter}&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally I get this error message on the page when I set an external URL with the route params.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"status":"error","message":"Cannot parse path {url={type=EXTERNAL, content_id=null, href=https:",&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Finally in the console I get a 400 bad request error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Katie&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 18:46:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1037691#M40586</guid>
      <dc:creator>KWallace7</dc:creator>
      <dc:date>2024-09-06T18:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Linking with Route Params</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1039057#M40623</link>
      <description>&lt;P&gt;Thanks for clarifying &lt;SPAN&gt;&lt;SPAN class="mention" data-mention="@KWallace7"&gt;@KWallace7&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; It sounds like the link is getting treated as a fully external link vs trying to link internally with query parameters. Which is giving the 404.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you looked into building a custom module and leveraging HubL? Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363300"&gt;@Jnix284&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&amp;nbsp;have you tackled anything similar in your recent project work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 17:42:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1039057#M40623</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-09-10T17:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Linking with Route Params</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1039062#M40624</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;I haven't run into this error specifically, but I believe I've worked on a project with a similar objective&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/786447"&gt;@KWallace7&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I'm understanding correctly, you have a product page that has filters and you want to add links to that page with the products pre-filtered?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was the PM for a custom project for POWER Pro theme to add URL parameters for the product page and as Jaycee mentioned, it required a custom module to configure the parameters so they could be added to the filters. The code required is beyond my capabilities with HubL, but I can at least confirm it's possible and maybe one of the others will be able to help further!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 17:59:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1039062#M40624</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2024-09-10T17:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Linking with Route Params</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1039131#M40626</link>
      <description>&lt;P&gt;Thanks &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363300"&gt;@Jnix284&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 19:23:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Internal-Linking-with-Route-Params/m-p/1039131#M40626</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-09-10T19:23:40Z</dc:date>
    </item>
  </channel>
</rss>

