<?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: Page Redirection in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Page-Redirection/m-p/641528#M28919</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt; , what are you thoughts on this redirect mayhem? &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2022 23:44:34 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2022-05-30T23:44:34Z</dc:date>
    <item>
      <title>Page Redirection</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Page-Redirection/m-p/640200#M28889</link>
      <description>&lt;P&gt;this url is not redirecting to respective url please help me out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;lt;div class="container" id="tab3C"&amp;gt;&lt;BR /&gt;&amp;lt;div class="portfoliolist" id="whitepapers_portfoliolist"&amp;gt;&lt;BR /&gt;{% for row in hubdb_table_rows(5311014, "status=Published&amp;amp;orderBy=-hs_created_at") %}&lt;BR /&gt;{% set sentence_whitepapers_title = row.whitepapers_title %}&lt;BR /&gt;{% set sentence_all_offerings = row.all_offerings %}&lt;BR /&gt;{% set sentence_all_industry = row.all_industry %}&lt;BR /&gt;&amp;lt;div class="whitepapers-hide mix portfolio all-offerings all-industry {{sentence_all_offerings.name|lower|replace(' ', '-')|replace(' ', '')}} {{ sentence_all_industry.name|lower|replace(' ', '-')|replace('-&amp;amp;-', '-')}} {{ sentence_whitepapers_title|lower }}" data-filter-item data-filter-name="{{ sentence_whitepapers_title|lower }}"&amp;gt;&lt;BR /&gt;&amp;lt;div class="portfolio-wrapper"&amp;gt;&lt;BR /&gt;{% if row.whitepapers_image %}&lt;BR /&gt;&amp;lt;img src="{{ row.whitepapers_image.url }}" alt="{{ row.whitepapers_title }}"&amp;gt;&lt;BR /&gt;{% else %}&lt;BR /&gt;&amp;lt;img src="{{ get_asset_url('../images/resources-image.png') }}" alt="Image" /&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;div class="label"&amp;gt;&lt;BR /&gt;&amp;lt;div class="label-text"&amp;gt;&lt;BR /&gt;&amp;lt;div class="text-title match"&amp;gt;{{ row.whitepapers_title|truncatehtml(80, '...' , false) }}&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div class="text-description"&amp;gt;{{ row.whitepapers_description|truncatehtml(90, '...' , false) }}&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div class="view-link"&amp;gt;&lt;BR /&gt;{% if row.is_it_gated.name== 'Yes' %}&lt;BR /&gt;&amp;lt;a href="{{ domain }}/download-whitepapers/?redirect={{ domain }}/whitepapers/{{ row.hs_path }}" class="text-link gettedform" target="_blank"&amp;gt;Download&amp;lt;/a&amp;gt;&lt;BR /&gt;{% else %}&lt;BR /&gt;&amp;lt;a href="{{ domain }}/whitepapers/{{ row.hs_path }}" class="text-link" target="_blank"&amp;gt;Download&amp;lt;/a&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% endfor %}&lt;BR /&gt;&amp;lt;div class="load-more-button" style="display: none;"&amp;gt;&lt;BR /&gt;&amp;lt;a href="javascript&amp;amp;colon;void(0)" class="whitepaper-load-more button"&amp;gt;Load More&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 12:47:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Page-Redirection/m-p/640200#M28889</guid>
      <dc:creator>VYadav7</dc:creator>
      <dc:date>2022-05-27T12:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Page Redirection</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Page-Redirection/m-p/641528#M28919</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt; , what are you thoughts on this redirect mayhem? &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 23:44:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Page-Redirection/m-p/641528#M28919</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-05-30T23:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Page Redirection</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Page-Redirection/m-p/641748#M28926</link>
      <description>&lt;P&gt;Have you set&amp;nbsp;&lt;SPAN&gt;{{ domain }} somewhere in your code that you haven't copy pasted here? If not, it's not a valid HubL variable, you need {{ request.domain }} and you need to add the protocol to it, e.g.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;href="https://{{ request.domain }}/download-whitepapers?redirect={{ request.domain }}/whitepapers/{{ row.hs_path }}"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you reading the "?redirect" url parameter with JS and doing something with it based on some event e.g. form submission?&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 10:36:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Page-Redirection/m-p/641748#M28926</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2022-05-31T10:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Page Redirection</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Page-Redirection/m-p/657270#M29255</link>
      <description>&lt;P&gt;I have used this code and it works fine&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;hbspt.forms.create({&lt;BR /&gt;region: "na1",&lt;BR /&gt;portalId: "2466330",&lt;BR /&gt;formId: "{{ module.download_assets_form_id }}",&lt;BR /&gt;inlineMessage: 'This page is redirecting...',&lt;BR /&gt;onFormSubmit: function($form){&lt;BR /&gt;setTimeout( function() {&lt;BR /&gt;window.location = "{{ request.query_dict.redirect }}";&lt;BR /&gt;}, 250 );&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 11:46:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Page-Redirection/m-p/657270#M29255</guid>
      <dc:creator>VYadav7</dc:creator>
      <dc:date>2022-06-29T11:46:15Z</dc:date>
    </item>
  </channel>
</rss>

